1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-25 12:33:29 +01:00

Merge pull request #4416 from Elsensee/ticket/14746

[ticket/14746] Make msg_handler in installer independent from container
This commit is contained in:
Marc Alexander 2016-08-21 19:04:17 +02:00
commit f814840568

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;