Skip to content

Commit 430200c

Browse files
committed
Merge branch 'prep-release-3.3.15' into 3.3.x
2 parents bb3d41e + d8aa687 commit 430200c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

phpBB/includes/acp/acp_extensions.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313

1414
use phpbb\exception\exception_interface;
15+
use phpbb\exception\runtime_exception;
1516
use phpbb\exception\version_check_exception;
1617

1718
/**
@@ -344,7 +345,7 @@ function main($id, $mode)
344345

345346
$this->template->assign_block_vars('updates_available', $updates_available);
346347
}
347-
catch (exception_interface $e)
348+
catch (runtime_exception $e)
348349
{
349350
$message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters()));
350351

@@ -423,7 +424,7 @@ public function list_enabled_exts()
423424
$enabled_extension_meta_data[$name]['S_VERSIONCHECK'] = true;
424425
$enabled_extension_meta_data[$name]['U_VERSIONCHECK_FORCE'] = $this->u_action . '&action=details&versioncheck_force=1&ext_name=' . urlencode($md_manager->get_metadata('name'));
425426
}
426-
catch (exception_interface $e)
427+
catch (runtime_exception $e)
427428
{
428429
// Ignore exceptions due to the version check
429430
}
@@ -433,7 +434,7 @@ public function list_enabled_exts()
433434
$enabled_extension_meta_data[$name]['S_VERSIONCHECK'] = false;
434435
}
435436
}
436-
catch (exception_interface $e)
437+
catch (runtime_exception $e)
437438
{
438439
$message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters()));
439440
$this->template->assign_block_vars('disabled', array(
@@ -501,7 +502,7 @@ public function list_disabled_exts()
501502
{
502503
$disabled_extension_meta_data[$name]['S_VERSIONCHECK'] = false;
503504
}
504-
catch (exception_interface $e)
505+
catch (runtime_exception $e)
505506
{
506507
$message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters()));
507508
$this->template->assign_block_vars('disabled', array(
@@ -572,7 +573,7 @@ public function list_available_exts()
572573
{
573574
$available_extension_meta_data[$name]['S_VERSIONCHECK'] = false;
574575
}
575-
catch (exception_interface $e)
576+
catch (runtime_exception $e)
576577
{
577578
$message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters()));
578579
$this->template->assign_block_vars('not_installed', array(

phpBB/includes/acp/acp_main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ function main($id, $mode)
485485
'UPGRADE_INSTRUCTIONS' => !empty($upgrades_available) ? $user->lang('UPGRADE_INSTRUCTIONS', $upgrades_available['current'], $upgrades_available['announcement']) : false,
486486
));
487487
}
488-
catch (\RuntimeException $e)
488+
catch (\phpbb\exception\runtime_exception $e)
489489
{
490490
$message = call_user_func_array(array($user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters()));
491491
$template->assign_vars(array(

0 commit comments

Comments
 (0)