aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-06-21 20:55:49 +0000
committerrub <rub@piwigo.org>2007-06-21 20:55:49 +0000
commit843d56e38ec174d364a43c0233e1d55a4a1b9c4b (patch)
treea7b1743b4b3523eef42f180367c5a72957a05500
parentebf2bba815c76a661d686e069ed9fce79d5a2030 (diff)
Error on my last commit 2038
git-svn-id: http://piwigo.org/svn/trunk@2039 68402e56-0260-453c-a942-63ccdbb3a9ee
-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;
}