aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/functions/error.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/functions/error.php')
-rw-r--r--phpBB/functions/error.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/functions/error.php b/phpBB/functions/error.php
index f8182335f2..acfce126c2 100644
--- a/phpBB/functions/error.php
+++ b/phpBB/functions/error.php
@@ -52,6 +52,10 @@ function error_die($db, $error_code = "", $error_msg = "")
$error_msg = "There are no posts in this forum. Click on the 'Post New Topic' link on this page to post one.";
}
}
+ if(DEBUG)
+ {
+ $error_msg .= "<br>Line number: ".__LINE__."<br>In File: ".__FILE__;
+ }
$template->set_file(array("error_body" => "error_body.tpl"));
$template->set_var(array("ERROR_MESSAGE" => $error_msg));
$template->pparse("output", "error_body");