aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-18 13:35:39 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-18 13:35:39 +0000
commitb57290bb2935132ee136d48701ebbcfc0fdad9a4 (patch)
treeb396315ce9dae176eee983846ff83151088de183 /mod/groups/actions
parentb0cb69f6ff7c1f67c9427366bebdbf3eb20c43de (diff)
downloadelgg-b57290bb2935132ee136d48701ebbcfc0fdad9a4.tar.gz
elgg-b57290bb2935132ee136d48701ebbcfc0fdad9a4.tar.bz2
Closes #893: Using ->join() method instead to ensure that event is triggered.
git-svn-id: https://code.elgg.org/elgg/trunk@3164 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/actions')
-rw-r--r--mod/groups/actions/addtogroup.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/groups/actions/addtogroup.php b/mod/groups/actions/addtogroup.php
index 52494760f..2cf242102 100644
--- a/mod/groups/actions/addtogroup.php
+++ b/mod/groups/actions/addtogroup.php
@@ -45,7 +45,8 @@
remove_entity_relationship($group->guid, 'invited', $user->guid);
remove_entity_relationship($user->guid, 'membership_request', $group->guid);
- add_entity_relationship($user->guid, 'member', $group->guid);
+ //add_entity_relationship($user->guid, 'member', $group->guid);
+ $group->join($user);
// send welcome email
notify_user($user->getGUID(), $group->owner_guid,