diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2012-03-16 00:22:42 -0400 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-11-17 16:39:57 -0500 |
| commit | a6c7fbc59d02ed44ef90e340c4f957a8c5ac9ca5 (patch) | |
| tree | 011ad48ebb64a7aa09749cfe1d26f3e2936efeac /phpBB/includes/template/compile.php | |
| parent | dd7c5183fbc5401c85f530a304b70fbb0b5d7fbe (diff) | |
| download | forums-a6c7fbc59d02ed44ef90e340c4f957a8c5ac9ca5.tar forums-a6c7fbc59d02ed44ef90e340c4f957a8c5ac9ca5.tar.gz forums-a6c7fbc59d02ed44ef90e340c4f957a8c5ac9ca5.tar.bz2 forums-a6c7fbc59d02ed44ef90e340c4f957a8c5ac9ca5.tar.xz forums-a6c7fbc59d02ed44ef90e340c4f957a8c5ac9ca5.zip | |
[feature/template-events] Pass top-level template name to template filter.
This will be used to invoke template-specific hooks.
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/template/compile.php')
| -rw-r--r-- | phpBB/includes/template/compile.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/template/compile.php b/phpBB/includes/template/compile.php index b63da05394..06ff60387a 100644 --- a/phpBB/includes/template/compile.php +++ b/phpBB/includes/template/compile.php @@ -36,14 +36,16 @@ class phpbb_template_compile * Constructor. * * @param bool $allow_php Whether PHP code will be allowed in templates (inline PHP code, PHP tag and INCLUDEPHP tag) + * @param string $template_name Name of top-level template being compiled * @param phpbb_style_resource_locator $locator Resource locator * @param string $phpbb_root_path Path to phpBB root directory * @param phpbb_extension_manager $extension_manager Extension manager to use for finding template fragments in extensions; if null, template hooks will not be invoked */ - public function __construct($allow_php, $locator, $phpbb_root_path, $extension_manager = null) + public function __construct($allow_php, $template_name, $locator, $phpbb_root_path, $extension_manager = null) { $this->filter_params = array( 'allow_php' => $allow_php, + 'template_name' => $template_name, 'locator' => $locator, 'phpbb_root_path' => $phpbb_root_path, 'extension_manager' => $extension_manager, |
