diff options
Diffstat (limited to 'actions/all.php')
-rw-r--r-- | actions/all.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/all.php b/actions/all.php index 3d3d1c356..0f8cf587c 100644 --- a/actions/all.php +++ b/actions/all.php @@ -78,11 +78,11 @@ class AllAction extends StreamAction { $page = 1; } - $notice = $user->noticesWithFriends($page); + $notice = $user->noticesWithFriends(($page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1); + # XXX: revisit constant scope - $notice->limit((($page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE + 1); - + $cnt = $notice->find(); if ($cnt > 0) { common_element_start('ul', array('id' => 'notices')); |