diff --git a/inc/display.php b/inc/display.php index 89e32fed..bd180f5a 100644 --- a/inc/display.php +++ b/inc/display.php @@ -73,6 +73,9 @@ function createBoardlist($mod=false) { function error($message, $priority = true, $debug_stuff = false) { global $board, $mod, $config, $db_error; + + if (isset($debug_stuff['file'])) + $message .= " {$debug_stuff['file']}"; if ($config['syslog'] && $priority !== false) { // Use LOG_NOTICE instead of LOG_ERR or LOG_WARNING because most error message are not significant.