1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[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
This commit is contained in:
Josh Woody
2010-05-17 12:12:00 -05:00
committed by Oleg Pudeyev
parent 76ad7c938d
commit e7e0ab9d0b
3 changed files with 156 additions and 133 deletions

View File

@@ -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';
}