X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Foutbox.php;h=deef1cc870f5ef9a7ef6c2643be3f59a1f116958;hb=f59ab5dc40862b141ee5463fd4d24b0d213a96f2;hp=043b74edc49d55487dd2859ca0ada1abcad9bc04;hpb=8cb3035b89df32e8194f7607bb8d098f57f81d23;p=quix0rs-gnu-social.git diff --git a/actions/outbox.php b/actions/outbox.php index 043b74edc4..deef1cc870 100644 --- a/actions/outbox.php +++ b/actions/outbox.php @@ -69,19 +69,8 @@ class OutboxAction extends MailboxAction */ function showRelationshipLinks() { - // Machine-readable pagination - if ($this->page > 1) { - $this->element('link', array('rel' => 'next', - 'href' => common_local_url('outbox', - array('nickname' => $this->user->nickname, - 'page' => $this->page - 1)), - 'title' => _('Next Messages'))); - } - $this->element('link', array('rel' => 'prev', - 'href' => common_local_url('outbox', - array('nickname' => $this->user->nickname, - 'page' => $this->page + 1)), - 'title' => _('Previous Messages'))); + $this->sequenceRelationships($this->page > 1, $this->count > NOTICES_PER_PAGE, // FIXME + $this->page, 'outbox', array('nickname' => $this->user->nickname)); } /**