Commit 1f4311f4 authored by Dries's avatar Dries

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

parent f67cddb4
......@@ -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
}
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