mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Added line number/filename to error die function
git-svn-id: file:///svn/phpbb/trunk@55 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5d9b97857c
commit
04978aa044
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue