1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 06:08:19 +01:00

Merge pull request #6198 from Noxwizard/ticket/16766

[ticket/16766] Show long error messages during install/update
This commit is contained in:
Marc Alexander 2021-04-29 20:30:55 +02:00
commit 950d8b8a13
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

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 (!$msg_text && !empty($msg_long_text))
{
$msg_text = $msg_long_text;
}
switch ($errno)
{
case E_NOTICE: