]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
try to fix up pagination again
authorEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 14:58:14 +0000 (09:58 -0500)
committerEvan Prodromou <evan@prodromou.name>
Thu, 20 Nov 2008 14:58:14 +0000 (09:58 -0500)
darcs-hash:20081120145814-84dde-f0d8fb0756935e16516778c521eb263064c5bd96.gz

lib/gallery.php

index fe36733540508386e534faeafb58bd9acab0962e..0ac9fd4efaebf3c68425d216a0959169b0cae1d0 100644 (file)
@@ -201,13 +201,13 @@ class GalleryAction extends Action {
                        common_element('a', array('href' => common_local_url($this->trimmed('action'),
                                                                                                                                 array('display' => 'icons',
                                                                                                                                           'nickname' => $profile->nickname,
-                                                                                                                                          'page' => 1 + floor((($page - 1) * AVATARS_PER_PAGE) / PROFILES_PER_PAGE)))),
+                                                                                                                                          'page' => 1 + floor((($page - 1) * PROFILES_PER_PAGE) / AVATARS_PER_PAGE)))),
                                                   _('Icons'));
                        break;
                 default:
                        common_element('a', array('href' => common_local_url($this->trimmed('action'),
                                                                                                                                 array('nickname' => $profile->nickname,
-                                                                                                                                          'page' => 1 + floor((($page - 1) * PROFILES_PER_PAGE) / AVATARS_PER_PAGE)))),
+                                                                                                                                          'page' => 1 + floor((($page - 1) * AVATARS_PER_PAGE) / PROFILES_PER_PAGE)))),
                                                   _('List'));
                        common_text(' | ');
                        common_element('span', NULL, _('Icons'));