aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-06-23 07:42:49 -0400
committerCash Costello <cash.costello@gmail.com>2011-06-23 07:42:49 -0400
commit1dd0a7fe4b14fff8f2643b5d72fc44dfcdfe0c1f (patch)
tree0c70e5ee0299ac924c99df94b5aedaca38d2cc9c /mod/groups
parent2322e964dcac21a32835560d3e8692cec180cbb0 (diff)
downloadelgg-1dd0a7fe4b14fff8f2643b5d72fc44dfcdfe0c1f.tar.gz
elgg-1dd0a7fe4b14fff8f2643b5d72fc44dfcdfe0c1f.tar.bz2
Refs #1867 let group owner know what user they just removed
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/actions/groups/membership/remove.php4
-rw-r--r--mod/groups/languages/en.php2
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',