summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-10-24 18:36:01 +0000
committerDries Buytaert <dries@buytaert.net>2008-10-24 18:36:01 +0000
commit1f4311f4b5e3271551cdb82f8507dfe2ef641fa2 (patch)
tree625c11ca0ddc16b1b009f6871a3f076bf67c51bb
parentf67cddb49bb0df3ec6f6774108133d471c113f85 (diff)
downloadbrdo-1f4311f4b5e3271551cdb82f8507dfe2ef641fa2.tar.gz
brdo-1f4311f4b5e3271551cdb82f8507dfe2ef641fa2.tar.bz2
- Patch #323854 by c960657: made DatabaseLog::findCaller() work on Windows. Long live unit tests.
-rw-r--r--includes/database/log.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/database/log.inc b/includes/database/log.inc
index 2ad5a8b2e..065d2f0d7 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
+}