diff options
author | Josh Woody <a_jelly_doughnut@phpbb.com> | 2010-05-17 12:12:00 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-05-08 02:56:45 -0400 |
commit | e7e0ab9d0b33121e38a236879fcca417072140f6 (patch) | |
tree | 85fa54dbbef58afaa3197e0d79c3b38a522e3686 /phpBB/includes/acp/acp_prune.php | |
parent | 76ad7c938d7834c09c98b6759dca4a196eb3c29b (diff) | |
download | forums-e7e0ab9d0b33121e38a236879fcca417072140f6.tar forums-e7e0ab9d0b33121e38a236879fcca417072140f6.tar.gz forums-e7e0ab9d0b33121e38a236879fcca417072140f6.tar.bz2 forums-e7e0ab9d0b33121e38a236879fcca417072140f6.tar.xz forums-e7e0ab9d0b33121e38a236879fcca417072140f6.zip |
[feature/prune-users] Rework user_delete() functions_user.php
user_delete now uses fewer queries to delete a set of users of size > 1 by
accepting an array of users rather than a single user at a time. This required
changing the third parameter, however the function retains its former behavior
with the old-style parameters.
PHPBB3-9622
Diffstat (limited to 'phpBB/includes/acp/acp_prune.php')
-rw-r--r-- | phpBB/includes/acp/acp_prune.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_prune.php b/phpBB/includes/acp/acp_prune.php index 6120c15d68..99bec29d6d 100644 --- a/phpBB/includes/acp/acp_prune.php +++ b/phpBB/includes/acp/acp_prune.php @@ -265,10 +265,7 @@ class acp_prune } else { - foreach ($user_ids as $user_id) - { - user_delete('retain', $user_id, $usernames[$user_id]); - } + user_delete('retain', $user_ids, true); $l_log = 'LOG_PRUNE_USER_DEL_ANON'; } |