mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
[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
This commit is contained in:
parent
7f76c9f9c7
commit
08e6c61180
11 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue