Skip to content
Snippets Groups Projects
Commit 1f4311f4 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #323854 by c960657: made DatabaseLog::findCaller() work on Windows. Long live unit tests.

parent f67cddb4
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ public function findCaller() {
$stack = debug_backtrace();
$stack_count = count($stack);
for ($i = 0; $i < $stack_count; ++$i) {
if (strpos($stack[$i]['file'], 'includes/database') === FALSE) {
if (strpos($stack[$i]['file'], 'includes' . DIRECTORY_SEPARATOR . 'database') === FALSE) {
return array(
'file' => $stack[$i]['file'],
'line' => $stack[$i]['line'],
......@@ -156,4 +156,4 @@ public function findCaller() {
}
}
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment