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:
commit
950d8b8a13
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user