mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-23 09:07:43 +02: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
@ -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…
x
Reference in New Issue
Block a user