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:
parent
66650cb0e2
commit
7fd634b420
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user