diff options
-rw-r--r-- | mod/groups/actions/groups/membership/remove.php | 4 | ||||
-rw-r--r-- | mod/groups/languages/en.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/groups/actions/groups/membership/remove.php b/mod/groups/actions/groups/membership/remove.php index 6f0698371..650d35286 100644 --- a/mod/groups/actions/groups/membership/remove.php +++ b/mod/groups/actions/groups/membership/remove.php @@ -14,10 +14,10 @@ $group = get_entity($group_guid); elgg_set_page_owner_guid($group->guid); if (($user instanceof ElggUser) && ($group instanceof ElggGroup) && $group->canEdit()) { - // Don't allow removeing group owner + // Don't allow removing group owner if ($group->getOwnerGUID() != $user->getGUID()) { if ($group->leave($user)) { - system_message(elgg_echo("groups:removed")); + system_message(elgg_echo("groups:removed", array($user->name))); } else { register_error(elgg_echo("groups:cantremove")); } diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php index a4d9863ca..f2895db88 100644 --- a/mod/groups/languages/en.php +++ b/mod/groups/languages/en.php @@ -168,7 +168,7 @@ $english = array( 'groups:cantleave' => 'Could not leave group', 'groups:removeuser' => 'Remove from group', 'groups:cantremove' => 'Cannot remove user from group', - 'groups:removed' => 'User successfully removed from group', + 'groups:removed' => 'Successfully removed %s from group', 'groups:addedtogroup' => 'Successfully added the user to the group', 'groups:joinrequestnotmade' => 'Could not request to join group', 'groups:joinrequestmade' => 'Requested to join group', |