From b66c9098bd4188a1fbeb92351d1370736c10d1b4 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 18 Jul 2013 23:57:15 +0200 Subject: [PATCH] Correct namespace of OC_ classes --- lib/db/adapter.php | 4 ++-- 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() . '"
'; $entry .= 'Offending command was: ' . $query.'
'; - 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() . '"
'; $entry .= 'Offending command was: ' . $query . '
'; - 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() . '"
'; $entry .= 'Offending command was: ' . $query.'
'; - 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; -- 2.39.5