save mainpage element for groups

This commit is contained in:
Evan Prodromou 2010-02-25 12:05:22 -05:00
parent 8f42d37593
commit d53b4b9b84
3 changed files with 5 additions and 0 deletions

View File

@ -249,6 +249,7 @@ class EditgroupAction extends GroupDesignAction
$this->group->homepage = $homepage;
$this->group->description = $description;
$this->group->location = $location;
$this->group->mainpage = common_local_url('showgroup', array('nickname' => $nickname));
$result = $this->group->update($orig);

View File

@ -180,6 +180,8 @@ class NewgroupAction extends Action
}
}
$mainpage = common_local_url('showgroup', array('nickname' => $nickname));
$cur = common_current_user();
// Checked in prepare() above
@ -193,6 +195,7 @@ class NewgroupAction extends Action
'location' => $location,
'aliases' => $aliases,
'userid' => $cur->id,
'mainpage' => $mainpage,
'local' => true));
common_redirect($group->homeUrl(), 303);

View File

@ -421,6 +421,7 @@ class User_group extends Memcached_DataObject
$group->description = $description;
$group->location = $location;
$group->uri = $uri;
$group->mainpage = $mainpage;
$group->created = common_sql_now();
$result = $group->insert();