save mainpage element for groups
This commit is contained in:
parent
8f42d37593
commit
d53b4b9b84
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user