From 9eafc8d0ba2084d09fa891e3dce76ab3b31be12b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 15 Apr 2011 18:54:35 -0400 Subject: [PATCH] use threadingnoticestream for groups --- actions/showgroup.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/actions/showgroup.php b/actions/showgroup.php index 7ad9f112e6..5bb90e86dd 100644 --- a/actions/showgroup.php +++ b/actions/showgroup.php @@ -148,7 +148,7 @@ class ShowgroupAction extends GroupDesignAction $this->userProfile = Profile::current(); - $stream = new GroupNoticeStream($this->group, $this->userProfile); + $stream = new ThreadingGroupNoticeStream($this->group, $this->userProfile); $this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE + 1); @@ -438,3 +438,11 @@ class GroupMembersMiniListItem extends ProfileMiniListItem return $aAttrs; } } + +class ThreadingGroupNoticeStream extends ThreadingNoticeStream +{ + function __construct($group, $profile) + { + parent::__construct(new GroupNoticeStream($group, $profile)); + } +} \ No newline at end of file -- 2.39.5