mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[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:
@@ -94,6 +94,13 @@ class phpbb_template_filter extends php_user_filter
|
|||||||
*/
|
*/
|
||||||
private $extension_manager;
|
private $extension_manager;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Template compiler.
|
||||||
|
*
|
||||||
|
* @var phpbb_template_compile
|
||||||
|
*/
|
||||||
|
private $template_compile;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stream filter
|
* Stream filter
|
||||||
*
|
*
|
||||||
@@ -156,6 +163,7 @@ class phpbb_template_filter extends php_user_filter
|
|||||||
$this->locator = $this->params['locator'];
|
$this->locator = $this->params['locator'];
|
||||||
$this->phpbb_root_path = $this->params['phpbb_root_path'];
|
$this->phpbb_root_path = $this->params['phpbb_root_path'];
|
||||||
$this->extension_manager = $this->params['extension_manager'];
|
$this->extension_manager = $this->params['extension_manager'];
|
||||||
|
$this->template_compile = $this->params['template_compile'];
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user