diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php index 6faeee61fd..e08c2e341b 100644 --- a/phpBB/includes/acp/acp_extensions.php +++ b/phpBB/includes/acp/acp_extensions.php @@ -12,6 +12,7 @@ */ use phpbb\exception\exception_interface; +use phpbb\exception\runtime_exception; use phpbb\exception\version_check_exception; /** @@ -388,7 +389,7 @@ class acp_extensions $this->template->assign_block_vars('updates_available', $updates_available); } - catch (exception_interface $e) + catch (runtime_exception $e) { $message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters())); @@ -797,7 +798,7 @@ class acp_extensions $enabled_extension_meta_data[$name]['S_VERSIONCHECK'] = true; $enabled_extension_meta_data[$name]['U_VERSIONCHECK_FORCE'] = $this->u_action . '&action=details&versioncheck_force=1&ext_name=' . urlencode($md_manager->get_metadata('name')); } - catch (exception_interface $e) + catch (runtime_exception $e) { // Ignore exceptions due to the version check } @@ -807,7 +808,7 @@ class acp_extensions $enabled_extension_meta_data[$name]['S_VERSIONCHECK'] = false; } } - catch (exception_interface $e) + catch (runtime_exception $e) { $message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters())); $this->template->assign_block_vars('disabled', array( @@ -887,7 +888,7 @@ class acp_extensions { $disabled_extension_meta_data[$name]['S_VERSIONCHECK'] = false; } - catch (exception_interface $e) + catch (runtime_exception $e) { $message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters())); $this->template->assign_block_vars('disabled', array( @@ -969,7 +970,7 @@ class acp_extensions { $available_extension_meta_data[$name]['S_VERSIONCHECK'] = false; } - catch (exception_interface $e) + catch (runtime_exception $e) { $message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters())); $this->template->assign_block_vars('not_installed', array( diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php index 0fc4a581bc..b29e3f7ad1 100644 --- a/phpBB/includes/acp/acp_main.php +++ b/phpBB/includes/acp/acp_main.php @@ -476,7 +476,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(