diff options
author | friendica <info@friendica.com> | 2013-11-17 13:54:43 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-17 13:54:43 -0800 |
commit | bec85f1494026a94eb521b802a74b67762b01a6c (patch) | |
tree | a0206bbb445010ce87ab2e1b6ba11f47f13f0cae /mod/admin.php | |
parent | 92f37fd0d5222d4f8cb7234d3de5fa8c784f81d3 (diff) | |
download | volse-hubzilla-bec85f1494026a94eb521b802a74b67762b01a6c.tar.gz volse-hubzilla-bec85f1494026a94eb521b802a74b67762b01a6c.tar.bz2 volse-hubzilla-bec85f1494026a94eb521b802a74b67762b01a6c.zip |
implement admin remove account
Diffstat (limited to 'mod/admin.php')
-rw-r--r-- | mod/admin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/admin.php b/mod/admin.php index fad03e34a..3608f6eda 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -563,7 +563,7 @@ function admin_page_users_post(&$a){ if (x($_POST,'page_users_delete')){ require_once("include/Contact.php"); foreach($users as $uid){ - user_remove($uid); + account_remove($uid,true); } notice( sprintf( tt("%s user deleted", "%s users deleted", count($users)), count($users)) ); } @@ -605,9 +605,9 @@ function admin_page_users(&$a){ check_form_security_token_redirectOnErr('/admin/users', 'admin_users', 't'); // delete user require_once("include/Contact.php"); - user_remove($uid); + account_remove($uid,true); - notice( sprintf(t("User '%s' deleted"), $user[0]['username']) . EOL); + notice( sprintf(t("User '%s' deleted"), $account[0]['account_email']) . EOL); }; break; case "block":{ check_form_security_token_redirectOnErr('/admin/users', 'admin_users', 't'); |