aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/compile.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2012-12-24 14:34:10 +0100
committerMarc Alexander <admin@m-a-styles.de>2012-12-24 14:34:10 +0100
commitc9338b38b35675bd1d620e4a8ca7d44a522faace (patch)
tree0746db7f0eb5f22780c04e3ece5fb6a549045860 /phpBB/includes/template/compile.php
parente6aaef6066549696453063417167e5a79c53b353 (diff)
parent46b3c3ecc43721e53c9711a196e91c300e03a1c8 (diff)
downloadforums-c9338b38b35675bd1d620e4a8ca7d44a522faace.tar
forums-c9338b38b35675bd1d620e4a8ca7d44a522faace.tar.gz
forums-c9338b38b35675bd1d620e4a8ca7d44a522faace.tar.bz2
forums-c9338b38b35675bd1d620e4a8ca7d44a522faace.tar.xz
forums-c9338b38b35675bd1d620e4a8ca7d44a522faace.zip
Merge branch 'develop' of github.com:marc1706/phpbb3 into feature/avatars
Diffstat (limited to 'phpBB/includes/template/compile.php')
-rw-r--r--phpBB/includes/template/compile.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/phpBB/includes/template/compile.php b/phpBB/includes/template/compile.php
index 22da21820e..fcdaf7abda 100644
--- a/phpBB/includes/template/compile.php
+++ b/phpBB/includes/template/compile.php
@@ -35,16 +35,23 @@ 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 bool $allow_php Whether PHP code will be allowed in templates (inline PHP code, PHP tag and INCLUDEPHP tag)
+ * @param array $style_names Name of style to which the template being compiled belongs and parents in style tree order
* @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 events will not be invoked
+ * @param phpbb_user $user Current user
*/
- public function __construct($allow_php, $locator, $phpbb_root_path)
+ public function __construct($allow_php, $style_names, $locator, $phpbb_root_path, $extension_manager = null, $user = null)
{
$this->filter_params = array(
'allow_php' => $allow_php,
+ 'style_names' => $style_names,
'locator' => $locator,
- 'phpbb_root_path' => $phpbb_root_path
+ 'phpbb_root_path' => $phpbb_root_path,
+ 'extension_manager' => $extension_manager,
+ 'user' => $user,
+ 'template_compile' => $this,
);
}