Using UserAction::delete() instead
authorAlexander Ebert <ebert@woltlab.com>
Fri, 12 Jul 2013 23:26:03 +0000 (01:26 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 12 Jul 2013 23:26:03 +0000 (01:26 +0200)
wcfsetup/install/files/lib/acp/form/UserBulkProcessingForm.class.php

index b9091ff93e5feea8082c15741fe67d81de3a004f..e35055fa04402617bb85839fdaf39b4398d86dbc 100644 (file)
@@ -2,6 +2,7 @@
 namespace wcf\acp\form;
 use wcf\data\user\group\UserGroup;
 use wcf\data\user\User;
+use wcf\data\user\UserAction;
 use wcf\data\user\UserEditor;
 use wcf\form\AbstractForm;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
@@ -373,7 +374,8 @@ class UserBulkProcessingForm extends UserOptionListForm {
                                
                                $userIDs = $this->fetchUsers();
                                
-                               UserEditor::deleteAll($userIDs);
+                               $userAction = new UserAction($userIDs, 'delete');
+                               $userAction->executeAction();
                        break;
                }
                $this->saved();