From 1f4311f4b5e3271551cdb82f8507dfe2ef641fa2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 24 Oct 2008 18:36:01 +0000 Subject: [PATCH] - Patch #323854 by c960657: made DatabaseLog::findCaller() work on Windows. Long live unit tests. --- includes/database/log.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/database/log.inc b/includes/database/log.inc index 2ad5a8b2e6f..065d2f0d79d 100644 --- a/includes/database/log.inc +++ b/includes/database/log.inc @@ -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 { } } } -} \ No newline at end of file +}