feature 2614: pagination on albums, save one query on picture page
git-svn-id: http://piwigo.org/svn/trunk@18392 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
5fed7d636b
commit
1e927104aa
1 changed files with 2 additions and 1 deletions
|
@ -319,7 +319,8 @@ SELECT DISTINCT(image_id)
|
|||
} //otherwise the calendar will requery all subitems
|
||||
|
||||
// GET CATEGORIES LIST
|
||||
if ( 0==$page['start']
|
||||
if ( script_basename()=='index'
|
||||
and 0==$page['start']
|
||||
and !isset($page['flat'])
|
||||
and !isset($page['chronology_field'])
|
||||
and ('recent_cats'==$page['section'] or 'categories'==$page['section'])
|
||||
|
|
Loading…
Reference in a new issue