aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-08-12 06:37:47 -0700
committerJoas Schilling <nickvergessen@gmx.de>2013-08-12 06:37:47 -0700
commit585f692e3168203645bf40d21c51309ab6572b68 (patch)
tree90d33c18ba8b09f01969f52d6ede972dbe226c10 /phpBB/phpbb
parentf6c6122eed3f05937ba6d4ec25d5707472a6ac00 (diff)
parent4b1c5879eb64006c57d94bf534d4a382d9ba5c41 (diff)
downloadforums-585f692e3168203645bf40d21c51309ab6572b68.tar
forums-585f692e3168203645bf40d21c51309ab6572b68.tar.gz
forums-585f692e3168203645bf40d21c51309ab6572b68.tar.bz2
forums-585f692e3168203645bf40d21c51309ab6572b68.tar.xz
forums-585f692e3168203645bf40d21c51309ab6572b68.zip
Merge pull request #1643 from rechosen/ticket/11777
[ticket/11777] Search for template listeners in the php event listeners way
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/template/twig/node/event.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/phpbb/template/twig/node/event.php b/phpBB/phpbb/template/twig/node/event.php
index 971dea14fa..4533151d05 100644
--- a/phpBB/phpbb/template/twig/node/event.php
+++ b/phpBB/phpbb/template/twig/node/event.php
@@ -18,6 +18,12 @@ if (!defined('IN_PHPBB'))
class phpbb_template_twig_node_event extends Twig_Node
{
+ /**
+ * The subdirectory in which all template listener files must be placed
+ * @var string
+ */
+ protected $listener_directory = 'event/';
+
/** @var Twig_Environment */
protected $environment;
@@ -37,7 +43,7 @@ class phpbb_template_twig_node_event extends Twig_Node
{
$compiler->addDebugInfo($this);
- $location = $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)
{