mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02: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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user