From 81e6d50c533964899308e5745745381c340a1764 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 22 Jul 2008 12:15:49 -0400 Subject: blow off DB_DataObject joins, write SQL from scratch darcs-hash:20080722161549-84dde-fedeed101bdef172f4a7aabf2278f1a2277a6d88.gz --- actions/all.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actions/all.php') 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')); -- cgit v1.2.3-54-g00ecf