mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-22 23:40:12 +02:00
[feature/template-events] Rename RUNHOOKS to EVENT
Rename the way to add template events PHPBB3-9550
This commit is contained in:
parent
ecdb54fc04
commit
8d58e69ed3
@ -344,10 +344,10 @@ class phpbb_template_filter extends php_user_filter
|
||||
return '<!-- ENDPHP -->';
|
||||
break;
|
||||
|
||||
case 'RUNHOOKS':
|
||||
case 'EVENT':
|
||||
// return value here will be compiled code (html with embedded php).
|
||||
// we don't want to wrap it in php tags here.
|
||||
return '<?php ' . $this->compile_tag_run_hooks($matches[2]) . '?>';
|
||||
return '<?php ' . $this->compile_tag_event($matches[2]) . '?>';
|
||||
break;
|
||||
|
||||
default:
|
||||
@ -873,7 +873,7 @@ class phpbb_template_filter extends php_user_filter
|
||||
*
|
||||
* $tag_args should be a single string identifying hook location.
|
||||
*/
|
||||
private function compile_tag_run_hooks($tag_args)
|
||||
private function compile_tag_event($tag_args)
|
||||
{
|
||||
if (!preg_match('/^\w+$/', $tag_args))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user