aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/user/ban.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-08 15:28:56 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-01-08 15:28:56 +0000
commit6955e992dbbc5a6e4a1844fa30475aacf6262701 (patch)
treeb38171042a354bba440ac730fe79733ee0100296 /actions/admin/user/ban.php
parent50606888ddaa348bdabcd1e735eed55e26ff9c75 (diff)
downloadelgg-6955e992dbbc5a6e4a1844fa30475aacf6262701.tar.gz
elgg-6955e992dbbc5a6e4a1844fa30475aacf6262701.tar.bz2
Refs #668, #640: Cleaner interface provided for banning.
git-svn-id: https://code.elgg.org/elgg/trunk@2546 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/admin/user/ban.php')
-rw-r--r--actions/admin/user/ban.php5
1 files changed, 2 insertions, 3 deletions
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