aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-03-23 21:52:35 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-03-23 21:52:35 +0100
commita975a3573435d56b837c78b9df5ef92dc2b6dba6 (patch)
tree4644689e9918228051700822b2782047acc3aade /phpBB/includes/acp
parent6f1de69bbe8c876ce3c69f7f23d3dcdf65a890b2 (diff)
downloadforums-a975a3573435d56b837c78b9df5ef92dc2b6dba6.tar
forums-a975a3573435d56b837c78b9df5ef92dc2b6dba6.tar.gz
forums-a975a3573435d56b837c78b9df5ef92dc2b6dba6.tar.bz2
forums-a975a3573435d56b837c78b9df5ef92dc2b6dba6.tar.xz
forums-a975a3573435d56b837c78b9df5ef92dc2b6dba6.zip
[ticket/15135] Correctly pass exception arguments and add back link again
PHPBB3-15135
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_extensions.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php
index c38c492c1f..164e5872bb 100644
--- a/phpBB/includes/acp/acp_extensions.php
+++ b/phpBB/includes/acp/acp_extensions.php
@@ -163,7 +163,7 @@ class acp_extensions
catch (\phpbb\extension\exception $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);
}
$extension = $phpbb_extension_manager->get_extension($ext_name);
@@ -193,7 +193,8 @@ class acp_extensions
}
catch (\phpbb\extension\exception $e)
{
- trigger_error($e . adm_back_link($this->u_action), E_USER_WARNING);
+ $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);
}
$extension = $phpbb_extension_manager->get_extension($ext_name);