mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-16 14:46:28 +02:00
[feature/twig] Nicer code for get_user_style.php()
PHPBB3-11598
This commit is contained in:
@ -91,11 +91,16 @@ class phpbb_style
|
|||||||
*/
|
*/
|
||||||
public function get_user_style()
|
public function get_user_style()
|
||||||
{
|
{
|
||||||
return array_merge(array(
|
$style_list = array(
|
||||||
$this->user->style['style_path'],
|
$this->user->style['style_path'],
|
||||||
),
|
|
||||||
($this->user->style['style_parent_id']) ? array_reverse(explode('/', $this->user->style['style_parent_tree'])) : array()
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user