diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-08-09 23:20:37 -0400 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-08-09 23:20:54 -0400 |
commit | 66232035aa1e0d81d5c8f141b45521998cd7207e (patch) | |
tree | 46455ec4197af38eeb91f080735602f9ec45f59e /phpBB/includes/template | |
parent | 4bb56cddb3a0ab8012e9324f94138630799449de (diff) | |
download | forums-66232035aa1e0d81d5c8f141b45521998cd7207e.tar forums-66232035aa1e0d81d5c8f141b45521998cd7207e.tar.gz forums-66232035aa1e0d81d5c8f141b45521998cd7207e.tar.bz2 forums-66232035aa1e0d81d5c8f141b45521998cd7207e.tar.xz forums-66232035aa1e0d81d5c8f141b45521998cd7207e.zip |
[feature/template-engine] Delete useless code from set_template.
set_custom_template performs these calls, repeating them in
set_template is not needed.
PHPBB3-9726
Diffstat (limited to 'phpBB/includes/template')
-rw-r--r-- | phpBB/includes/template/template.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/phpBB/includes/template/template.php b/phpBB/includes/template/template.php index 71fecc7d26..80052ba59a 100644 --- a/phpBB/includes/template/template.php +++ b/phpBB/includes/template/template.php @@ -105,13 +105,7 @@ class phpbb_template $fallback_template_path = null; } - $this->locator->set_custom_template($template_root, $fallback_template_path); - - $this->cachepath = $this->phpbb_root_path . 'cache/tpl_' . str_replace('_', '-', $style_name) . '_'; - - $this->context = new phpbb_template_context(); - - return true; + return $this->locator->set_custom_template($template_root, $fallback_template_path); } /** |