1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-18 14:48:28 +01:00

[ticket/14746] Make msg_handler in installer independent from container

PHPBB3-14746
This commit is contained in:
Oliver Schramm 2016-08-19 19:23:52 +02:00
parent 723d9d8e4c
commit 0eb44fc934

View File

@ -62,8 +62,10 @@ function installer_msg_handler($errno, $msg_text, $errfile, $errline)
case E_WARNING:
case E_USER_WARNING:
case E_USER_NOTICE:
$msg = '[phpBB debug] "' . $msg_text . '" in file ' . $errfile . ' on line ' . $errline;
$msg = '[phpBB Debug] "' . $msg_text . '" in file ' . $errfile . ' on line ' . $errline;
if (!empty($phpbb_installer_container))
{
try
{
/** @var \phpbb\install\helper\iohandler\iohandler_interface $iohandler */
@ -74,6 +76,13 @@ function installer_msg_handler($errno, $msg_text, $errfile, $errline)
{
print($msg);
}
}
else
{
print($msg);
}
return;
break;
case E_USER_ERROR:
$msg = '<b>General Error:</b><br />' . $msg_text . '<br /> in file ' . $errfile . ' on line ' . $errline;