*
* @return boolean success flag
*/
- function prepare($args)
+ protected function prepare(array $args=array())
{
parent::prepare($args);
*
* @return void
*/
- function handle($args)
+ protected function handle()
{
+ parent::handle();
$this->showPage();
}
$user = common_current_user();
if (!empty($user) && $user->streamModeOnly()) {
- $nl = new NoticeList($this->notice, $this);
+ $nl = new PrimaryNoticeList($this->notice, $this, array('show_n'=>NOTICES_PER_PAGE));
} else {
$nl = new ThreadedNoticeList($this->notice, $this, $this->userProfile);
}
// TRANS: This message contains Markdown links. Ensure they are formatted correctly: [Description](link).
$m = sprintf(_('**%s** is a user group on %%%%site.name%%%%, a [micro-blogging](http://en.wikipedia.org/wiki/Micro-blogging) service ' .
'based on the Free Software [StatusNet](http://status.net/) tool. Its members share ' .
- 'short messages about their life and interests. '),
+ 'short messages about their life and interests.'),
$this->group->getBestName());
}
$this->elementStart('div', array('id' => 'anon_notice'));
$this->raw(common_markup_to_html($m));
$this->elementEnd('div');
}
+
+ function extraHead()
+ {
+ if ($this->page != 1) {
+ $this->element('link', array('rel' => 'canonical',
+ 'href' => $this->group->homeUrl()));
+ }
+ }
}