return false;
}
- $cur = common_current_user();
-
- $this->userProfile = (empty($cur)) ? null : $cur->getProfile();
+ $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);
*/
function showGroupNotices()
{
- $nl = new ThreadedNoticeList($notice, $this, $this->userProfile);
+ $nl = new ThreadedNoticeList($this->notice, $this, $this->userProfile);
$cnt = $nl->show();
$this->pagination($this->page > 1,
return $aAttrs;
}
}
+
+class ThreadingGroupNoticeStream extends ThreadingNoticeStream
+{
+ function __construct($group, $profile)
+ {
+ parent::__construct(new GroupNoticeStream($group, $profile));
+ }
+}
\ No newline at end of file