From 3ea856c69e4ec78c830b39f00e1a92ff29c3905f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 18 May 2008 14:59:40 -0400 Subject: off-by-one error in notice stream darcs-hash:20080518185940-84dde-fb7a3af877c67b5d7e9c59d32092c1392a0ecd58.gz --- actions/all.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actions/all.php') diff --git a/actions/all.php b/actions/all.php index 92ae385ca..7cd1f5beb 100644 --- a/actions/all.php +++ b/actions/all.php @@ -38,7 +38,7 @@ class AllAction extends ShowstreamAction { $page = $this->arg('page') || 1; - $notice->limit((($page-1)*NOTICES_PER_PAGE) + 1, NOTICES_PER_PAGE); + $notice->limit((($page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE); $notice->find(); @@ -48,6 +48,7 @@ class AllAction extends ShowstreamAction { $this->show_notice($notice); } + # XXX: show a link for the next page common_element_end('div'); } } -- cgit v1.2.3-54-g00ecf