Permalink
Browse files

fix(groups): membership request has a link in site_notifications

When a user made a membership request to a group, the site notification
didn't have a link set to the group

fixes #7267
  • Loading branch information...
jeabakker committed Aug 11, 2015
1 parent 55a0f9b commit ba53c509579988cb8beb753b027cf66b97375596
Showing with 6 additions and 1 deletion.
  1. +6 −1 mod/groups/actions/groups/membership/join.php
@@ -63,8 +63,13 @@
$url,
), $owner->language);
$params = [
'action' => 'membership_request',
'object' => $group,
];
// Notify group owner
if (notify_user($owner->guid, $user->getGUID(), $subject, $body)) {
if (notify_user($owner->guid, $user->getGUID(), $subject, $body, $params)) {
system_message(elgg_echo("groups:joinrequestmade"));
} else {
register_error(elgg_echo("groups:joinrequestnotmade"));

0 comments on commit ba53c50

Please sign in to comment.