1
0
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:
Oleg Pudeyev
2012-06-11 21:00:22 -04:00
parent 436ade19fc
commit 699aab8e8e

View File

@ -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);
} }
/** /**