From 04978aa04408e988fd39bc1495b7536b47e3f66c Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Sun, 25 Feb 2001 00:07:50 +0000 Subject: Added line number/filename to error die function git-svn-id: file:///svn/phpbb/trunk@55 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/functions/error.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'phpBB/functions') 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 .= "
Line number: ".__LINE__."
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"); -- cgit v1.2.1