1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 20:13:22 +01:00

[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
This commit is contained in:
Oleg Pudeyev 2011-08-09 23:20:37 -04:00
parent 4bb56cddb3
commit 66232035aa

View File

@ -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);
}
/**