mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
69c0373a94
1 changed files with 15 additions and 0 deletions
|
@ -93,6 +93,21 @@ function installer_msg_handler($errno, $msg_text, $errfile, $errline)
|
|||
case E_USER_ERROR:
|
||||
$msg = '<b>General Error:</b><br>' . $msg_text . '<br> in file ' . $errfile . ' on line ' . $errline . '<br><br>';
|
||||
|
||||
if (!empty($phpbb_installer_container))
|
||||
{
|
||||
try
|
||||
{
|
||||
/** @var \phpbb\install\helper\iohandler\iohandler_interface $iohandler */
|
||||
$iohandler = $phpbb_installer_container->get('installer.helper.iohandler');
|
||||
$iohandler->add_error_message($msg);
|
||||
$iohandler->send_response(true);
|
||||
exit();
|
||||
}
|
||||
catch (\phpbb\install\helper\iohandler\exception\iohandler_not_implemented_exception $e)
|
||||
{
|
||||
throw new \phpbb\exception\runtime_exception($msg);
|
||||
}
|
||||
}
|
||||
throw new \phpbb\exception\runtime_exception($msg);
|
||||
break;
|
||||
case E_DEPRECATED:
|
||||
|
|
Loading…
Add table
Reference in a new issue