Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
b66c9098
Commit
b66c9098
authored
Jul 18, 2013
by
Bart Visscher
Browse files
Correct namespace of OC_ classes
parent
000b5a80
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/db/adapter.php
View file @
b66c9098
...
...
@@ -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
;
...
...
lib/db/adaptersqlite.php
View file @
b66c9098
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment