diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-11-27 00:46:36 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2012-11-17 16:39:54 -0500 |
commit | d6c881d0c67de80f0b60eab6be0c1dda33296657 (patch) | |
tree | a4eb34acd0fcd8be8bbc8d00d16dc6043ad59ff1 /phpBB/includes/bbcode.php | |
parent | ed548ae8ff0e87035c0c173d40212a96fa642135 (diff) | |
download | forums-d6c881d0c67de80f0b60eab6be0c1dda33296657.tar forums-d6c881d0c67de80f0b60eab6be0c1dda33296657.tar.gz forums-d6c881d0c67de80f0b60eab6be0c1dda33296657.tar.bz2 forums-d6c881d0c67de80f0b60eab6be0c1dda33296657.tar.xz forums-d6c881d0c67de80f0b60eab6be0c1dda33296657.zip |
[feature/template-events] Inject extension manager into template class.
Template class passes extension manager to template compiler.
Template compiler passes extension manager to template filter.
Template filter will use extension manager to locate hooks
as it is compiling templates.
All extension manager arguments are optional. If an extension
manager is not given, template hooks will not be invoked.
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/bbcode.php')
-rw-r--r-- | phpBB/includes/bbcode.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index b9ffa8091c..e8681420d4 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -134,7 +134,7 @@ class bbcode $style_resource_locator = new phpbb_style_resource_locator(); $style_path_provider = new phpbb_style_extension_path_provider($phpbb_extension_manager, new phpbb_style_path_provider()); - $template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $style_resource_locator, new phpbb_template_context()); + $template = new phpbb_template($phpbb_root_path, $phpEx, $config, $user, $style_resource_locator, new phpbb_template_context(), $phpbb_extension_manager); $style = new phpbb_style($phpbb_root_path, $phpEx, $config, $user, $style_resource_locator, $style_path_provider, $template); $style->set_style(); $template->set_filenames(array('bbcode.html' => 'bbcode.html')); |