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:
commit
f814840568
@ -62,18 +62,27 @@ function installer_msg_handler($errno, $msg_text, $errfile, $errline)
|
|||||||
case E_WARNING:
|
case E_WARNING:
|
||||||
case E_USER_WARNING:
|
case E_USER_WARNING:
|
||||||
case E_USER_NOTICE:
|
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;
|
||||||
|
|
||||||
try
|
if (!empty($phpbb_installer_container))
|
||||||
{
|
{
|
||||||
/** @var \phpbb\install\helper\iohandler\iohandler_interface $iohandler */
|
try
|
||||||
$iohandler = $phpbb_installer_container->get('installer.helper.iohandler');
|
{
|
||||||
$iohandler->add_warning_message($msg);
|
/** @var \phpbb\install\helper\iohandler\iohandler_interface $iohandler */
|
||||||
|
$iohandler = $phpbb_installer_container->get('installer.helper.iohandler');
|
||||||
|
$iohandler->add_warning_message($msg);
|
||||||
|
}
|
||||||
|
catch (\phpbb\install\helper\iohandler\exception\iohandler_not_implemented_exception $e)
|
||||||
|
{
|
||||||
|
print($msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (\phpbb\install\helper\iohandler\exception\iohandler_not_implemented_exception $e)
|
else
|
||||||
{
|
{
|
||||||
print ($msg);
|
print($msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return;
|
||||||
break;
|
break;
|
||||||
case E_USER_ERROR:
|
case E_USER_ERROR:
|
||||||
$msg = '<b>General Error:</b><br />' . $msg_text . '<br /> in file ' . $errfile . ' on line ' . $errline;
|
$msg = '<b>General Error:</b><br />' . $msg_text . '<br /> in file ' . $errfile . ' on line ' . $errline;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user