mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 20:24:08 +02:00
[feature/template-engine] Delete $style_name param from locator's set_custom_template.
This parameter was unused, it was only used by template's set_custom_template to determine cache file prefix. PHPBB3-9726
This commit is contained in:
@@ -117,10 +117,9 @@ class phpbb_template
|
||||
*/
|
||||
public function set_custom_template($template_path, $style_name, $fallback_template_path = false)
|
||||
{
|
||||
$this->locator->set_custom_template($template_path, $style_name, $fallback_template_path);
|
||||
$template_name = $style_name;
|
||||
$this->locator->set_custom_template($template_path, $fallback_template_path);
|
||||
|
||||
$this->cachepath = $this->phpbb_root_path . 'cache/ctpl_' . str_replace('_', '-', $template_name) . '_';
|
||||
$this->cachepath = $this->phpbb_root_path . 'cache/ctpl_' . str_replace('_', '-', $style_name) . '_';
|
||||
|
||||
$this->context = new phpbb_template_context();
|
||||
|
||||
|
Reference in New Issue
Block a user