diff options
author | James Atkinson <thefinn@users.sourceforge.net> | 2001-02-25 00:07:50 +0000 |
---|---|---|
committer | James Atkinson <thefinn@users.sourceforge.net> | 2001-02-25 00:07:50 +0000 |
commit | 04978aa04408e988fd39bc1495b7536b47e3f66c (patch) | |
tree | f32855fcb46cba5892f74e6b8ad9381c53c55bf2 /phpBB/functions | |
parent | 5d9b97857cf57788d17d090856f7acbad136b416 (diff) | |
download | forums-04978aa04408e988fd39bc1495b7536b47e3f66c.tar forums-04978aa04408e988fd39bc1495b7536b47e3f66c.tar.gz forums-04978aa04408e988fd39bc1495b7536b47e3f66c.tar.bz2 forums-04978aa04408e988fd39bc1495b7536b47e3f66c.tar.xz forums-04978aa04408e988fd39bc1495b7536b47e3f66c.zip |
Added line number/filename to error die function
git-svn-id: file:///svn/phpbb/trunk@55 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/functions')
-rw-r--r-- | phpBB/functions/error.php | 4 |
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"); |