}
}
- $mainpage = common_local_url('showgroup', array('nickname' => $nickname));
-
$cur = common_current_user();
// Checked in prepare() above
'location' => $location,
'aliases' => $aliases,
'userid' => $cur->id,
- 'mainpage' => $mainpage,
'local' => true));
common_redirect($group->homeUrl(), 303);
}
// MAGICALLY put fields into current scope
+ // @fixme kill extract(); it makes debugging absurdly hard
extract($fields);
// fill in later...
$uri = null;
}
+ if (empty($mainpage)) {
+ $mainpage = common_local_url('showgroup', array('nickname' => $nickname));
+ }
$group->nickname = $nickname;
$group->fullname = $fullname;