mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
parent
4bb56cddb3
commit
66232035aa
1 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue