Commit b66c9098 authored by Bart Visscher's avatar Bart Visscher
Browse files

Correct namespace of OC_ classes

parent 000b5a80
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment