aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/event/kernel_compiler_pass.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/phpBB/includes/event/kernel_compiler_pass.php b/phpBB/includes/event/kernel_compiler_pass.php
index 18b6661cd4..9a650bc404 100644
--- a/phpBB/includes/event/kernel_compiler_pass.php
+++ b/phpBB/includes/event/kernel_compiler_pass.php
@@ -44,10 +44,7 @@ class phpbb_event_kernel_compiler_pass implements CompilerPassInterface
if (!isset($event['method']))
{
- $event['method'] = 'on'.preg_replace(array(
- '/(?<=\b)[a-z]/ie',
- '/[^a-z0-9]/i'
- ), array('strtoupper("\\0")', ''), $event['event']);
+ throw new InvalidArgumentException($user->lang('NO_METHOD_ATTRIBUTE', $id));
}
$definition->addMethodCall('addListenerService', array($event['event'], array($id, $event['method']), $priority));