summaryrefslogtreecommitdiff
path: root/actions/replies.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/replies.php')
-rw-r--r--actions/replies.php16
1 files changed, 2 insertions, 14 deletions
diff --git a/actions/replies.php b/actions/replies.php
index 529ce7e98..835871ffc 100644
--- a/actions/replies.php
+++ b/actions/replies.php
@@ -85,20 +85,8 @@ class RepliesAction extends StreamAction {
$page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
$notice = $user->getReplies(($page-1) * NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1);
-
- $cnt = 0;
-
- if ($notice) {
- common_element_start('ul', array('id' => 'notices'));
- while ($notice->fetch()) {
- $cnt++;
- if ($cnt > NOTICES_PER_PAGE) {
- break;
- }
- $this->show_notice($notice);
- }
- common_element_end('ul');
- }
+
+ $cnt = $this->show_notice_list($notice);
common_pagination($page > 1, $cnt > NOTICES_PER_PAGE,
$page, 'replies', array('nickname' => $user->nickname));