mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
Code rewritting
git-svn-id: http://piwigo.org/svn/branches/release-1_3@302 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -540,7 +540,8 @@ function initialize_category( $calling_page = 'category' )
|
||||
$page['where'] = ' WHERE category_id != -1'.$where_append;
|
||||
$conf['order_by'] = ' ORDER BY hit DESC, file ASC';
|
||||
$page['cat_nb_images'] = $conf['top_number'];
|
||||
if ( isset($page['start']) && ($page['start']+ $user['nb_image_page'] >= $conf['top_number'] ))
|
||||
if ( isset( $page['start'] )
|
||||
and ($page['start']+$user['nb_image_page']>=$conf['top_number']))
|
||||
{
|
||||
$page['nb_image_page'] = $conf['top_number'] - $page['start'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user