[feature/template-events] Inject template compile into template filter.

This is needed for hooks in order for the filter to compile
template files from extensions.

PHPBB3-9550
This commit is contained in:
Oleg Pudeyev 2011-12-03 21:08:31 -05:00
parent d6c881d0c6
commit 09aae1ea30

View file

@ -94,6 +94,13 @@ class phpbb_template_filter extends php_user_filter
*/
private $extension_manager;
/**
* Template compiler.
*
* @var phpbb_template_compile
*/
private $template_compile;
/**
* Stream filter
*
@ -156,6 +163,7 @@ class phpbb_template_filter extends php_user_filter
$this->locator = $this->params['locator'];
$this->phpbb_root_path = $this->params['phpbb_root_path'];
$this->extension_manager = $this->params['extension_manager'];
$this->template_compile = $this->params['template_compile'];
return true;
}