aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-10-01 13:58:11 +0000
committermistic100 <mistic@piwigo.org>2012-10-01 13:58:11 +0000
commit1e927104aa7d340093000b8fa3ba52ae44045b0d (patch)
tree766301313a9ac336d5a39b228d4db7406f962325 /include
parent5fed7d636badafe40615d5714d080d40b6dbb4ff (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/section_init.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index 25712a0bb..dc58b9a2e 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -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'])