Merge "Run ConfirmEditTriggersCaptchaHook under correct name"

This commit is contained in:
jenkins-bot 2022-08-04 20:05:44 +00:00 committed by Gerrit Code Review
commit 00470e1388
2 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ use MediaWiki\Page\PageIdentity;
/**
* This is a hook handler interface, see docs/Hooks.md in core.
* Use the hook name "ConfirmEditTriggersCaptchaHook" to register handlers implementing this interface.
* Use the hook name "ConfirmEditTriggersCaptcha" to register handlers implementing this interface.
*
* @author Zabe
* @stable to implement

View file

@ -46,14 +46,14 @@ class HookRunner implements
*/
public function onConfirmEditTriggersCaptcha(
string $action,
?PageIdentity $title,
?PageIdentity $page,
bool &$result
) {
$this->hookContainer->run(
'ConfirmEditTriggersCaptchaHook',
'ConfirmEditTriggersCaptcha',
[
$action,
$title,
$page,
&$result
]
);