Skip to content

Commit

Permalink
feature 2614: pagination on albums, save one query on picture page
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@18392 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Oct 1, 2012
1 parent 5fed7d6 commit 1e92710
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/section_init.inc.php
Expand Up @@ -319,7 +319,8 @@
} //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'])
Expand Down

0 comments on commit 1e92710

Please sign in to comment.