aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index d3f0b4aa5..26ca7dd7e 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -152,8 +152,6 @@ function build_user( $user_id, $use_cache )
// calculation of the number of picture to display per page
$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
- list($user['template'], $user['theme']) = explode('/', $user['template']);
-
if (is_admin($user['status']))
{
list($user['admin_template'], $user['admin_theme']) =
@@ -165,6 +163,8 @@ function build_user( $user_id, $use_cache )
);
}
+ list($user['template'], $user['theme']) = explode('/', $user['template']);
+
return $user;
}