fix pagination for galleries
darcs-hash:20080620195627-84dde-96d31837394eba6357e1134bc5a76b650dea42e6.gz
This commit is contained in:
parent
22423f4210
commit
4b2883832e
@ -19,8 +19,9 @@
|
|||||||
|
|
||||||
if (!defined('LACONICA')) { exit(1); }
|
if (!defined('LACONICA')) { exit(1); }
|
||||||
|
|
||||||
define('AVATARS_PER_ROW', 8);
|
# 9x9
|
||||||
define('AVATARS_PER_PAGE', 80);
|
|
||||||
|
define('AVATARS_PER_PAGE', 81);
|
||||||
|
|
||||||
class GalleryAction extends Action {
|
class GalleryAction extends Action {
|
||||||
|
|
||||||
@ -37,7 +38,10 @@ class GalleryAction extends Action {
|
|||||||
$this->no_such_user();
|
$this->no_such_user();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$page = $this->arg('page') || 1;
|
$page = $this->arg('page');
|
||||||
|
if (!$page) {
|
||||||
|
$page = 1;
|
||||||
|
}
|
||||||
common_show_header($profile->nickname . ": " . $this->gallery_type(),
|
common_show_header($profile->nickname . ": " . $this->gallery_type(),
|
||||||
NULL, $profile,
|
NULL, $profile,
|
||||||
array($this, 'show_top'));
|
array($this, 'show_top'));
|
||||||
|
Loading…
Reference in New Issue
Block a user