diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-18 23:57:15 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-21 23:17:37 +0200 |
commit | b66c9098bd4188a1fbeb92351d1370736c10d1b4 (patch) | |
tree | 1cb109f58098131d3562e7259a86159f3a932988 /lib | |
parent | 000b5a801f27914d0a906b5f4c6ff58e14e5aebe (diff) | |
download | nextcloud-server-b66c9098bd4188a1fbeb92351d1370736c10d1b4.tar.gz nextcloud-server-b66c9098bd4188a1fbeb92351d1370736c10d1b4.zip |
Correct namespace of OC_ classes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/db/adapter.php | 4 | ||||
-rw-r--r-- | lib/db/adaptersqlite.php | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/db/adapter.php b/lib/db/adapter.php index 3b950331191..92c24b46fff 100644 --- a/lib/db/adapter.php +++ b/lib/db/adapter.php @@ -43,9 +43,9 @@ class 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; 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; |