From 52600ce0b063e68e622b19699841e41b5ddbf2d1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 20 May 2008 15:14:12 -0400 Subject: trim whitespace darcs-hash:20080520191412-84dde-a607dbe848279639630edd1ab4616d05cc2318d1.gz --- actions/all.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'actions/all.php') diff --git a/actions/all.php b/actions/all.php index 3994e8666..038572ba8 100644 --- a/actions/all.php +++ b/actions/all.php @@ -1,18 +1,18 @@ . */ @@ -24,31 +24,31 @@ require_once(INSTALLDIR.'/actions/showstream.php'); class AllAction extends ShowstreamAction { // XXX: push this up to a common function. - + function show_notices($profile) { $notice = DB_DataObject::factory('notice'); - + # XXX: chokety and bad $notice->whereAdd('EXISTS (SELECT subscribed from subscription where subscriber = '.$profile->id.' and subscribed = notice.profile_id)', 'OR'); $notice->whereAdd('profile_id = ' . $profile->id, 'OR'); - + $notice->orderBy('created DESC'); - + $page = $this->arg('page') || 1; - + $notice->limit((($page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE); - + $notice->find(); - + common_element_start('div', 'notices'); common_element('h2', 'notices', _t('Notices')); while ($notice->fetch()) { $this->show_notice($notice); } - + # XXX: show a link for the next page common_element_end('div'); } -- cgit v1.2.3-54-g00ecf