Skip to content

Commit

Permalink
fix remote API call dokuwiki.deleteUsers
Browse files Browse the repository at this point in the history
The parameters passed to triggerUserMod() were wrong.
  • Loading branch information
splitbrain committed Jun 11, 2018
1 parent 8767d1a commit ebf1744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/RemoteAPICore.php
Expand Up @@ -569,7 +569,7 @@ public function deleteUsers($usernames)
}
/** @var DokuWiki_Auth_Plugin $auth */
global $auth;
return (bool)$auth->triggerUserMod('deleteUsers', $usernames);
return (bool)$auth->triggerUserMod('delete', array($usernames));
}

/**
Expand Down

3 comments on commit ebf1744

@Klap-in
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was there an unit test for this api function?

@micgro42
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is now: #2418

@Klap-in
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

Please sign in to comment.