summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/editgroup.php1
-rw-r--r--actions/newgroup.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/actions/editgroup.php b/actions/editgroup.php
index bbbb7a0f4..d486db0c0 100644
--- a/actions/editgroup.php
+++ b/actions/editgroup.php
@@ -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);
diff --git a/actions/newgroup.php b/actions/newgroup.php
index 6bb3eca76..75bc293ec 100644
--- a/actions/newgroup.php
+++ b/actions/newgroup.php
@@ -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);