Skip to content

Commit

Permalink
fix(groups): group invite has link in site_notifications
Browse files Browse the repository at this point in the history
When a user was invited to a group the site notification didn't have a
link to the group in question

fixes #7267
  • Loading branch information
jeabakker committed Aug 11, 2015
1 parent ba53c50 commit 61a8484
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mod/groups/actions/groups/membership/invite.php
Expand Up @@ -47,9 +47,14 @@
$group->name, $group->name,
$url, $url,
), $user->language); ), $user->language);

$params = [
'action' => 'invite',
'object' => $group,
];


// Send notification // Send notification
$result = notify_user($user->getGUID(), $group->owner_guid, $subject, $body, NULL); $result = notify_user($user->getGUID(), $group->owner_guid, $subject, $body, $params);


if ($result) { if ($result) {
system_message(elgg_echo("groups:userinvited")); system_message(elgg_echo("groups:userinvited"));
Expand Down

0 comments on commit 61a8484

Please sign in to comment.