mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/twig] Nicer code for get_user_style.php()
PHPBB3-11598
This commit is contained in:
parent
576d8d7072
commit
c1a600277d
1 changed files with 9 additions and 4 deletions
|
@ -91,11 +91,16 @@ class phpbb_style
|
|||
*/
|
||||
public function get_user_style()
|
||||
{
|
||||
return array_merge(array(
|
||||
$this->user->style['style_path'],
|
||||
),
|
||||
($this->user->style['style_parent_id']) ? array_reverse(explode('/', $this->user->style['style_parent_tree'])) : array()
|
||||
$style_list = array(
|
||||
$this->user->style['style_path'],
|
||||
);
|
||||
|
||||
if ($this->user->style['style_parent_id'])
|
||||
{
|
||||
$style_list = array_merge($style_list, array_reverse(explode('/', $this->user->style['style_parent_tree'])));
|
||||
}
|
||||
|
||||
return $style_list;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue