mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 04:23:38 +01:00
[ticket/11388] Do not modify by reference
PHPBB3-11388
This commit is contained in:
parent
ac6b4319b3
commit
bc4b5c87a9
@ -132,12 +132,13 @@ class phpbb_style
|
||||
$this->provider->set_styles($paths);
|
||||
$this->locator->set_paths($this->provider);
|
||||
|
||||
foreach ($paths as &$path)
|
||||
$new_paths = array();
|
||||
foreach ($paths as $path)
|
||||
{
|
||||
$path .= '/template/';
|
||||
$new_paths = $path . '/template/';
|
||||
}
|
||||
|
||||
$this->template->set_style_names($this->names, $paths, ($style_directories === array('styles')));
|
||||
$this->template->set_style_names($this->names, $new_paths1, ($style_directories === array('styles')));
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -174,12 +175,13 @@ class phpbb_style
|
||||
$this->locator->set_template_path($template_path);
|
||||
}
|
||||
|
||||
foreach ($paths as &$path)
|
||||
$new_paths = array();
|
||||
foreach ($paths as $path)
|
||||
{
|
||||
$path .= '/' . (($template_path !== false) ? $template_path : 'template/');
|
||||
$new_paths = $path . '/' . (($template_path !== false) ? $template_path : 'template/');
|
||||
}
|
||||
|
||||
$this->template->set_style_names($names, $paths);
|
||||
$this->template->set_style_names($names, $new_paths);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user