aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorrechosen <rechosen@gmail.com>2013-08-09 11:39:43 +0200
committerrechosen <rechosen@gmail.com>2013-08-12 09:59:11 +0200
commit08e6c6118036700f5d4196aa09d9d1a34b840514 (patch)
tree61681b2b72acb633e9d14b0e6510daa273a8ea2b /phpBB/phpbb
parent7f76c9f9c7d9014f313f150a9596bec030f39915 (diff)
downloadforums-08e6c6118036700f5d4196aa09d9d1a34b840514.tar
forums-08e6c6118036700f5d4196aa09d9d1a34b840514.tar.gz
forums-08e6c6118036700f5d4196aa09d9d1a34b840514.tar.bz2
forums-08e6c6118036700f5d4196aa09d9d1a34b840514.tar.xz
forums-08e6c6118036700f5d4196aa09d9d1a34b840514.zip
[ticket/11777] Require a suffix of '_listener' on extension template listeners
To further mirror the file name and location requirements for php template event listeners, require extension template event listener files to follow the '<event name>_listener.html' naming format. PHPBB3-11777
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/template/twig/node/event.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/template/twig/node/event.php b/phpBB/phpbb/template/twig/node/event.php
index c94e5fdf20..4533151d05 100644
--- a/phpBB/phpbb/template/twig/node/event.php
+++ b/phpBB/phpbb/template/twig/node/event.php
@@ -43,7 +43,7 @@ class phpbb_template_twig_node_event extends Twig_Node
{
$compiler->addDebugInfo($this);
- $location = $this->listener_directory . $this->getNode('expr')->getAttribute('name');
+ $location = $this->listener_directory . $this->getNode('expr')->getAttribute('name') . '_listener';
foreach ($this->environment->get_phpbb_extensions() as $ext_namespace => $ext_path)
{