From 52fce18e0a723ceb736ca7dd089d53d6f5beceaf Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 15 Apr 2011 18:47:56 -0400 Subject: [PATCH] use threading notice stream wrapper for public --- actions/public.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/actions/public.php b/actions/public.php index d906d65501..cd15425fab 100644 --- a/actions/public.php +++ b/actions/public.php @@ -88,7 +88,7 @@ class PublicAction extends Action $this->userProfile = Profile::current(); - $stream = new PublicNoticeStream($this->userProfile); + $stream = new ThreadingPublicNoticeStream($this->userProfile); $this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1); @@ -252,3 +252,11 @@ class PublicAction extends Action $this->elementEnd('div'); } } + +class ThreadingPublicNoticeStream extends ThreadingNoticeStream +{ + function __construct($profile) + { + parent::__construct(new PublicNoticeStream($profile)); + } +} -- 2.39.5