1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-14 12:40:13 +01:00

[ticket/16766] Show long error messages during install/update

PHPBB3-16766
This commit is contained in:
Patrick Webster 2021-04-24 12:39:27 -05:00
parent a641a992f6
commit 1f76aa65f3

View File

@ -49,13 +49,19 @@ function phpbb_include_updated($path, $phpbb_root_path, $optional = false)
function installer_msg_handler($errno, $msg_text, $errfile, $errline)
{
global $phpbb_installer_container;
global $phpbb_installer_container, $msg_long_text;
if (error_reporting() == 0)
{
return true;
}
// If the message handler is stripping text, fallback to the long version if available
if (isset($msg_long_text) && $msg_long_text && !$msg_text)
{
$msg_text = $msg_long_text;
}
switch ($errno)
{
case E_NOTICE: