N°2641 - Create a dedicated ErrorPage for fatal errors

Fix fatal errors being logged in setup.log instead of error.log
This commit is contained in:
Eric
2020-05-14 14:37:10 +02:00
parent 898ee95a2c
commit fa3610cfee
15 changed files with 108 additions and 48 deletions

View File

@@ -30,7 +30,7 @@ try
catch(Exception $e)
{
require_once(APPROOT.'/setup/setuppage.class.inc.php');
$oP = new SetupPage(Dict::S('UI:PageTitle:FatalError'));
$oP = new ErrorPage(Dict::S('UI:PageTitle:FatalError'));
$oP->add("<h1>".Dict::S('UI:FatalErrorMessage')."</h1>\n");
$oP->error(Dict::Format('UI:Error_Details', $e->getMessage()));
$oP->output();