Correct namespace of OC_ classes
This commit is contained in:
parent
000b5a801f
commit
b66c9098bd
|
@ -43,9 +43,9 @@ class Adapter {
|
||||||
} catch(\Doctrine\DBAL\DBALException $e) {
|
} catch(\Doctrine\DBAL\DBALException $e) {
|
||||||
$entry = 'DB Error: "'.$e->getMessage() . '"<br />';
|
$entry = 'DB Error: "'.$e->getMessage() . '"<br />';
|
||||||
$entry .= 'Offending command was: ' . $query.'<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);
|
error_log('DB error: ' . $entry);
|
||||||
OC_Template::printErrorPage( $entry );
|
\OC_Template::printErrorPage( $entry );
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
|
@ -31,9 +31,9 @@ class AdapterSqlite extends Adapter {
|
||||||
} catch(\Doctrine\DBAL\DBALException $e) {
|
} catch(\Doctrine\DBAL\DBALException $e) {
|
||||||
$entry = 'DB Error: "'.$e->getMessage() . '"<br />';
|
$entry = 'DB Error: "'.$e->getMessage() . '"<br />';
|
||||||
$entry .= 'Offending command was: ' . $query . '<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);
|
error_log('DB error: '.$entry);
|
||||||
OC_Template::printErrorPage( $entry );
|
\OC_Template::printErrorPage( $entry );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($stmt->fetchColumn() === 0) {
|
if ($stmt->fetchColumn() === 0) {
|
||||||
|
@ -50,9 +50,9 @@ class AdapterSqlite extends Adapter {
|
||||||
} catch(\Doctrine\DBAL\DBALException $e) {
|
} catch(\Doctrine\DBAL\DBALException $e) {
|
||||||
$entry = 'DB Error: "'.$e->getMessage() . '"<br />';
|
$entry = 'DB Error: "'.$e->getMessage() . '"<br />';
|
||||||
$entry .= 'Offending command was: ' . $query.'<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);
|
error_log('DB error: ' . $entry);
|
||||||
OC_Template::printErrorPage( $entry );
|
\OC_Template::printErrorPage( $entry );
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
Loading…
Reference in New Issue