diff options
| author | Igor Wiedler <igor@wiedler.ch> | 2011-07-10 00:35:07 +0200 |
|---|---|---|
| committer | Igor Wiedler <igor@wiedler.ch> | 2011-07-10 00:35:07 +0200 |
| commit | ae53623230a45eeedf50cc3f6220164d8cd256c3 (patch) | |
| tree | 130080560cc500d1da9b1e83f05c29d29a688e64 /phpBB/includes/template/template.php | |
| parent | ee0bba3ab65f68a24942a650b9414b8f2ad700b4 (diff) | |
| download | forums-ae53623230a45eeedf50cc3f6220164d8cd256c3.tar forums-ae53623230a45eeedf50cc3f6220164d8cd256c3.tar.gz forums-ae53623230a45eeedf50cc3f6220164d8cd256c3.tar.bz2 forums-ae53623230a45eeedf50cc3f6220164d8cd256c3.tar.xz forums-ae53623230a45eeedf50cc3f6220164d8cd256c3.zip | |
[feature/template-engine] Refactor $config dependency out of the filter
The template stream filter no longer depends on the $config global.
Instead it uses a 'allow_php' param that is passed via
stream_bucket_append's last argument.
Tests also adjusted.
PHPBB3-9726
Diffstat (limited to 'phpBB/includes/template/template.php')
| -rw-r--r-- | phpBB/includes/template/template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/template/template.php b/phpBB/includes/template/template.php index 935605b12a..2c121d7247 100644 --- a/phpBB/includes/template/template.php +++ b/phpBB/includes/template/template.php @@ -376,7 +376,7 @@ class phpbb_template $source_file = $this->_source_file_for_handle($handle); - $compile = new phpbb_template_compile(); + $compile = new phpbb_template_compile($this->config['tpl_allow_php']); $output_file = $this->_compiled_file_for_handle($handle); if ($compile->compile_file_to_file($source_file, $output_file) !== false) |
