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 +}