diff options
Diffstat (limited to 'lib/db/adaptersqlite.php')
-rw-r--r-- | lib/db/adaptersqlite.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/db/adaptersqlite.php b/lib/db/adaptersqlite.php index 252fd94b0c0..61cfaa44242 100644 --- a/lib/db/adaptersqlite.php +++ b/lib/db/adaptersqlite.php @@ -31,9 +31,9 @@ class AdapterSqlite extends Adapter { } catch(\Doctrine\DBAL\DBALException $e) { $entry = 'DB Error: "'.$e->getMessage() . '"<br />'; $entry .= 'Offending command was: ' . $query . '<br />'; - OC_Log::write('core', $entry, OC_Log::FATAL); + \OC_Log::write('core', $entry, \OC_Log::FATAL); error_log('DB error: '.$entry); - OC_Template::printErrorPage( $entry ); + \OC_Template::printErrorPage( $entry ); } if ($stmt->fetchColumn() === 0) { @@ -50,9 +50,9 @@ class AdapterSqlite extends Adapter { } catch(\Doctrine\DBAL\DBALException $e) { $entry = 'DB Error: "'.$e->getMessage() . '"<br />'; $entry .= 'Offending command was: ' . $query.'<br />'; - OC_Log::write('core', $entry, OC_Log::FATAL); + \OC_Log::write('core', $entry, \OC_Log::FATAL); error_log('DB error: ' . $entry); - OC_Template::printErrorPage( $entry ); + \OC_Template::printErrorPage( $entry ); } return $result; |