mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-23 11:35:24 +02:00
[ticket/10829] $style_name -> $style_path in style class.
Here the style path is taken and the variable name should be $style_path. PHPBB3-10829
This commit is contained in:
@ -89,9 +89,9 @@ class phpbb_style
|
|||||||
*/
|
*/
|
||||||
public function set_style()
|
public function set_style()
|
||||||
{
|
{
|
||||||
$style_name = $this->user->style['style_path'];
|
$style_path = $this->user->style['style_path'];
|
||||||
$style_dirs = ($this->user->style['style_parent_id']) ? array_reverse(explode('/', $this->user->style['style_parent_tree'])) : array();
|
$style_dirs = ($this->user->style['style_parent_id']) ? array_reverse(explode('/', $this->user->style['style_parent_tree'])) : array();
|
||||||
$paths = array($this->get_style_path($style_name));
|
$paths = array($this->get_style_path($style_path));
|
||||||
foreach ($style_dirs as $dir)
|
foreach ($style_dirs as $dir)
|
||||||
{
|
{
|
||||||
$paths[] = $this->get_style_path($dir);
|
$paths[] = $this->get_style_path($dir);
|
||||||
@ -100,7 +100,7 @@ class phpbb_style
|
|||||||
// Add 'all' path, used as last fallback path by hooks and extensions
|
// Add 'all' path, used as last fallback path by hooks and extensions
|
||||||
$paths[] = $this->get_style_path('all');
|
$paths[] = $this->get_style_path('all');
|
||||||
|
|
||||||
return $this->set_custom_style($style_name, $paths);
|
return $this->set_custom_style($style_path, $paths);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user