aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/actions/addtogroup.php2
-rw-r--r--mod/groups/actions/join.php2
-rw-r--r--mod/groups/actions/joinrequest.php2
-rw-r--r--mod/groups/actions/leave.php2
4 files changed, 8 insertions, 0 deletions
diff --git a/mod/groups/actions/addtogroup.php b/mod/groups/actions/addtogroup.php
index 0b99ea917..4ebb4eee0 100644
--- a/mod/groups/actions/addtogroup.php
+++ b/mod/groups/actions/addtogroup.php
@@ -29,6 +29,8 @@
$user = get_entity($u_id);
$group = get_entity($group_guid);
+ set_page_owner($group->guid);
+
if ( $user && $group) {
//if (get_loggedin_userid() == $group->owner_guid)
diff --git a/mod/groups/actions/join.php b/mod/groups/actions/join.php
index 423f108fd..1612587c8 100644
--- a/mod/groups/actions/join.php
+++ b/mod/groups/actions/join.php
@@ -28,6 +28,8 @@
$user = get_entity($user_guid);
$group = get_entity($group_guid);
+ set_page_owner($group->guid);
+
if (($user instanceof ElggUser) && ($group instanceof ElggGroup))
{
if ($group->isPublicMembership())
diff --git a/mod/groups/actions/joinrequest.php b/mod/groups/actions/joinrequest.php
index 51c400223..e3c83b169 100644
--- a/mod/groups/actions/joinrequest.php
+++ b/mod/groups/actions/joinrequest.php
@@ -30,6 +30,8 @@ if (in_array($group_guid, $invitations)) {
$user = get_entity($user_guid);
$group = get_entity($group_guid);
+set_page_owner($group->guid);
+
// If not a member of this group
if (($group) && ($user) && (!$group->isMember($user)))
{
diff --git a/mod/groups/actions/leave.php b/mod/groups/actions/leave.php
index b68eb7607..9ca32e152 100644
--- a/mod/groups/actions/leave.php
+++ b/mod/groups/actions/leave.php
@@ -23,6 +23,8 @@
$user = get_entity($user_guid);
$group = get_entity($group_guid);
+
+ set_page_owner($group->guid);
if (($user instanceof ElggUser) && ($group instanceof ElggGroup))
{