try to fix up pagination again

darcs-hash:20081120145814-84dde-f0d8fb0756935e16516778c521eb263064c5bd96.gz
This commit is contained in:
Evan Prodromou 2008-11-20 09:58:14 -05:00
parent d8c18ae39b
commit 0c935b4ace

View File

@ -201,13 +201,13 @@ class GalleryAction extends Action {
common_element('a', array('href' => common_local_url($this->trimmed('action'), common_element('a', array('href' => common_local_url($this->trimmed('action'),
array('display' => 'icons', array('display' => 'icons',
'nickname' => $profile->nickname, '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')); _('Icons'));
break; break;
default: default:
common_element('a', array('href' => common_local_url($this->trimmed('action'), common_element('a', array('href' => common_local_url($this->trimmed('action'),
array('nickname' => $profile->nickname, 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')); _('List'));
common_text(' | '); common_text(' | ');
common_element('span', NULL, _('Icons')); common_element('span', NULL, _('Icons'));