diff options
| author | Michael Cullum <unknownbliss@phpbbdevelopers.net> | 2012-03-20 06:53:48 +0000 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-11-17 16:39:57 -0500 |
| commit | 8d58e69ed38d834a94f7dd424f29554cb672310f (patch) | |
| tree | 9d6cdf83c3dcb1741bc33751fc11a18e0c64be3a | |
| parent | ecdb54fc048a0805f724d7a3931373f99744923a (diff) | |
| download | forums-8d58e69ed38d834a94f7dd424f29554cb672310f.tar forums-8d58e69ed38d834a94f7dd424f29554cb672310f.tar.gz forums-8d58e69ed38d834a94f7dd424f29554cb672310f.tar.bz2 forums-8d58e69ed38d834a94f7dd424f29554cb672310f.tar.xz forums-8d58e69ed38d834a94f7dd424f29554cb672310f.zip | |
[feature/template-events] Rename RUNHOOKS to EVENT
Rename the way to add template events
PHPBB3-9550
| -rw-r--r-- | phpBB/includes/template/filter.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/template/filter.php b/phpBB/includes/template/filter.php index 5129618f03..2c0057b64c 100644 --- a/phpBB/includes/template/filter.php +++ b/phpBB/includes/template/filter.php @@ -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)) { |
