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

merge-requests/26/head
Dries Buytaert 2008-10-24 18:36:01 +00:00
parent f67cddb49b
commit 1f4311f4b5
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ class DatabaseLog {
$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 @@ class DatabaseLog {
}
}
}
}
}