]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct pagination criteria
authorEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 12:24:11 +0000 (07:24 -0500)
committerEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 12:24:11 +0000 (07:24 -0500)
darcs-hash:20081120122411-84dde-86319f13b241ebe4557561106014035653d5e197.gz

lib/gallery.php

index 5397138ab9f099e1a75dbe27be1d419d1658ab36..d870b8a5691293ff4be27fd63e87760d5c5d9b57 100644 (file)
@@ -118,7 +118,7 @@ class GalleryAction extends Action {
                }
                
                common_pagination($page > 1,
-                                                 $subs_count > AVATARS_PER_PAGE,
+                                                 $cnt > $per_page,
                                                  $page,
                                                  $this->trimmed('action'),
                                                  array('nickname' => $profile->nickname));