diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 12:15:21 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 12:15:21 +0000 |
commit | 96a49b8ab3ccdcb4e0f383d558a6c606d74ed60d (patch) | |
tree | 47dae1be5ba827afe4a7696b3a15cbf79673793b /actions | |
parent | 0b2a1d2d617456dab58cb9928d0f61dac56fcaba (diff) | |
download | elgg-96a49b8ab3ccdcb4e0f383d558a6c606d74ed60d.tar.gz elgg-96a49b8ab3ccdcb4e0f383d558a6c606d74ed60d.tar.bz2 |
Banned now gives a reason why user disabled.
git-svn-id: https://code.elgg.org/elgg/trunk@1892 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions')
-rw-r--r-- | actions/admin/user/ban.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php index f6ae30fea..bba8205e6 100644 --- a/actions/admin/user/ban.php +++ b/actions/admin/user/ban.php @@ -21,7 +21,8 @@ if ( ($obj instanceof ElggUser) && ($obj->canEdit())) { - if ($obj->disable()) + // Now actually disable it + if ($obj->disable('banned')) system_message(elgg_echo('admin:user:ban:yes')); else register_error(elgg_echo('admin:user:ban:no')); |