use threadingnoticestream for groups

This commit is contained in:
Evan Prodromou 2011-04-15 18:54:35 -04:00
parent ee81f98828
commit 9eafc8d0ba

View File

@ -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));
}
}