Permalink
Browse files

fix(groups): group invite has link in site_notifications

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 61a8484d669835c7ab756ad96436823f78430f5c
Showing with 6 additions and 1 deletion.
  1. +6 −1 mod/groups/actions/groups/membership/invite.php
@@ -47,9 +47,14 @@
$group->name,
$url,
), $user->language);
$params = [
'action' => 'invite',
'object' => $group,
];
// 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) {
system_message(elgg_echo("groups:userinvited"));

0 comments on commit 61a8484

Please sign in to comment.