From 6955e992dbbc5a6e4a1844fa30475aacf6262701 Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 8 Jan 2009 15:28:56 +0000 Subject: Refs #668, #640: Cleaner interface provided for banning. git-svn-id: https://code.elgg.org/elgg/trunk@2546 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/admin/user/ban.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'actions/admin/user') diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php index 33232b3eb..b13e9dfa0 100644 --- a/actions/admin/user/ban.php +++ b/actions/admin/user/ban.php @@ -21,10 +21,9 @@ $obj = get_entity($guid); if ( ($obj instanceof ElggUser) && ($obj->canEdit())) - { - disable_user_entities($obj->guid); + { // Now actually disable it - if ($obj->disable('banned')) { + if ($obj->ban('banned')) { system_message(elgg_echo('admin:user:ban:yes')); } else -- cgit v1.2.3