diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-07 15:22:18 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-06-07 15:22:18 +0000 |
commit | e3bbb00edb615ead64cec9e81f517a51fa64e4b9 (patch) | |
tree | 413887c63c96c671d7f4bad2aedddeb607769b0c /mod | |
parent | 6cc851f0f4214967adbffc967a54f26fd8aeddc2 (diff) | |
download | elgg-e3bbb00edb615ead64cec9e81f517a51fa64e4b9.tar.gz elgg-e3bbb00edb615ead64cec9e81f517a51fa64e4b9.tar.bz2 |
group create river action moved
git-svn-id: http://code.elgg.org/elgg/trunk@6384 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r-- | mod/groups/actions/edit.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mod/groups/actions/edit.php b/mod/groups/actions/edit.php index bc2530111..56ab914a7 100644 --- a/mod/groups/actions/edit.php +++ b/mod/groups/actions/edit.php @@ -90,13 +90,12 @@ if (isset($CONFIG->group_tool_options)) { } } -if($group->save()){ - add_to_river('river/group/create','create',$user->guid,$group->guid); -} +$group->save(); -// group creator needs to be member of new group +// group creator needs to be member of new group and river entry created if ($new_group_flag) { $group->join($user); + add_to_river('river/group/create','create',$user->guid,$group->guid); } |