mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 14:58:52 +00: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
1 changed files with 3 additions and 3 deletions
|
@ -344,10 +344,10 @@ class phpbb_template_filter extends php_user_filter
|
||||||
return '<!-- ENDPHP -->';
|
return '<!-- ENDPHP -->';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'RUNHOOKS':
|
case 'EVENT':
|
||||||
// return value here will be compiled code (html with embedded php).
|
// return value here will be compiled code (html with embedded php).
|
||||||
// we don't want to wrap it in php tags here.
|
// 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;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -873,7 +873,7 @@ class phpbb_template_filter extends php_user_filter
|
||||||
*
|
*
|
||||||
* $tag_args should be a single string identifying hook location.
|
* $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))
|
if (!preg_match('/^\w+$/', $tag_args))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue