From 66232035aa1e0d81d5c8f141b45521998cd7207e Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Tue, 9 Aug 2011 23:20:37 -0400 Subject: [PATCH] [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 --- phpBB/includes/template/template.php | 8 +------- 1 file changed, 1 insertion(+), 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); } /**