1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-05 08:23:28 +02:00

Merge branch '3.2.x'

* 3.2.x:
  [ticket/15011] Use exception interface for 3.2
This commit is contained in:
Tristan Darricau 2017-04-21 23:51:42 +02:00
commit 1844b8ca2a
No known key found for this signature in database
GPG Key ID: 817043C2E29DB881

View File

@ -106,7 +106,7 @@ class acp_extensions
catch (exception_interface $e)
{
$message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters()));
trigger_error($message, E_USER_WARNING);
trigger_error($message . adm_back_link($this->u_action), E_USER_WARNING);
}
}
@ -161,7 +161,7 @@ class acp_extensions
{
$md_manager->validate_enable();
}
catch (\phpbb\extension\exception $e)
catch (exception_interface $e)
{
$message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters()));
trigger_error($message . adm_back_link($this->u_action), E_USER_WARNING);
@ -192,7 +192,7 @@ class acp_extensions
{
$md_manager->validate_enable();
}
catch (\phpbb\extension\exception $e)
catch (exception_interface $e)
{
$message = call_user_func_array(array($this->user, 'lang'), array_merge(array($e->getMessage()), $e->get_parameters()));
trigger_error($message . adm_back_link($this->u_action), E_USER_WARNING);