[feature/twig] Nicer code for get_user_style.php()

PHPBB3-11598
This commit is contained in:
Nathan Guse 2013-07-05 09:57:55 -05:00
parent 576d8d7072
commit c1a600277d

View file

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