aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/template/filter.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/includes/template/filter.php b/phpBB/includes/template/filter.php
index f3e0f6017c..50882b2855 100644
--- a/phpBB/includes/template/filter.php
+++ b/phpBB/includes/template/filter.php
@@ -877,8 +877,16 @@ class phpbb_template_filter extends php_user_filter
{
if (!preg_match('/^\w+$/', $tag_args))
{
- // do something
- var_dump($tag_args);
+ // The hook location is wrongly formatted,
+ // if the `DEBUG` constant is set then trigger a waring,
+ // otherwise drop the hook and continue
+ if (defined('DEBUG'))
+ {
+ global $user;
+ trigger_error($user->lang('ERR_TEMPLATE_EVENT_LOCATION', $tag_args), E_USER_NOTICE);
+ }
+
+ return;
}
$location = $tag_args;