$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);
function showSections()
{
- $pop = new PopularNoticeSection($this);
- $pop->show();
$ibs = new InviteButtonSection($this);
$ibs->show();
+ $pop = new PopularNoticeSection($this);
+ $pop->show();
$gbp = new GroupsByMembersSection($this);
$gbp->show();
$feat = new FeaturedUsersSection($this);
$this->elementEnd('div');
}
}
+
+class ThreadingPublicNoticeStream extends ThreadingNoticeStream
+{
+ function __construct($profile)
+ {
+ parent::__construct(new PublicNoticeStream($profile));
+ }
+}