summaryrefslogtreecommitdiff
path: root/actions/subscribers.php
diff options
context:
space:
mode:
authorEvan Prodromou <git@evanprodromou.name>2009-01-29 08:37:40 -0500
committerEvan Prodromou <git@evanprodromou.name>2009-01-29 08:37:40 -0500
commitb6fbb9462c5087e00c6812a9e83aa49fae5403a5 (patch)
treed84f2fa4578020dd9f49cc9f86811f360581a13d /actions/subscribers.php
parent04b3add162674df2ebdb4e4e347b7dbea934580b (diff)
proper pagination for subs and members
Diffstat (limited to 'actions/subscribers.php')
-rw-r--r--actions/subscribers.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/actions/subscribers.php b/actions/subscribers.php
index 25200079c..22faafaef 100644
--- a/actions/subscribers.php
+++ b/actions/subscribers.php
@@ -72,9 +72,13 @@ class SubscribersAction extends GalleryAction
function showContent()
{
+ parent::showContent();
+
$offset = ($this->page-1) * PROFILES_PER_PAGE;
$limit = PROFILES_PER_PAGE + 1;
+ $cnt = 0;
+
if ($this->tag) {
$subscribers = $this->user->getTaggedSubscribers($this->tag, $offset, $limit);
} else {
@@ -83,7 +87,7 @@ class SubscribersAction extends GalleryAction
if ($subscribers) {
$subscribers_list = new SubscribersList($subscribers, $this->user, $this);
- $subscribers_list->show();
+ $cnt = $subscribers_list->show();
}
$subscribers->free();