set default address for showgroup

This commit is contained in:
Evan Prodromou 2011-03-28 16:24:17 -04:00
parent ec5a43bf4f
commit a7380d5933

View File

@ -365,6 +365,18 @@ class ShowgroupAction extends GroupDesignAction
$this->raw(common_markup_to_html($m));
$this->elementEnd('div');
}
function noticeFormOptions()
{
$options = parent::noticeFormOptions();
$cur = common_current_user();
if (!empty($cur) && $cur->isMember($this->group)) {
$options['to_group'] = $this->group;
}
return $options;
}
}
class GroupAdminSection extends ProfileSection