mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
refactoring
git-svn-id: http://piwigo.org/svn/trunk@397 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+11
-2
@@ -123,12 +123,21 @@ foreach ( $infos as $info ) {
|
||||
|
||||
// special for $user['restrictions'] array
|
||||
$user['restrictions'] = explode( ',', $user['forbidden_categories'] );
|
||||
if ( $user['restrictions'][0] == '' ) $user['restrictions'] = array();
|
||||
if ( $user['restrictions'][0] == '' )
|
||||
{
|
||||
$user['restrictions'] = array();
|
||||
}
|
||||
|
||||
$isadmin = false;
|
||||
if ($user['status'] == 'admin') $isadmin =true;
|
||||
if ( $user['status'] == 'admin' )
|
||||
{
|
||||
$isadmin =true;
|
||||
}
|
||||
// calculation of the number of picture to display per page
|
||||
$user['nb_image_page'] = $user['nb_image_line'] * $user['nb_line_page'];
|
||||
|
||||
init_userprefs($user);
|
||||
|
||||
$user['lien_expanded']='./template/'.$user['template'].'/theme/expanded.gif';
|
||||
$user['lien_collapsed']='./template/'.$user['template'].'/theme/collapsed.gif';
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user