Correct namespace of OC_ classes

This commit is contained in:
Bart Visscher 2013-07-18 23:57:15 +02:00
parent 000b5a801f
commit b66c9098bd
2 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;