1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 00:02:18 +02:00

[ticket/17480] Fix PHP fatal error in version check failure

PHPBB-17480
This commit is contained in:
rxu 2025-03-03 23:33:58 +07:00
parent 66650cb0e2
commit 7fd634b420
No known key found for this signature in database
GPG Key ID: 955F0567380E586A

View File

@ -485,7 +485,7 @@ class acp_main
'UPGRADE_INSTRUCTIONS' => !empty($upgrades_available) ? $user->lang('UPGRADE_INSTRUCTIONS', $upgrades_available['current'], $upgrades_available['announcement']) : false,
));
}
catch (\RuntimeException $e)
catch (\phpbb\exception\runtime_exception $e)
{
$message = call_user_func_array(array($user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters()));
$template->assign_vars(array(