Run ConfirmEditTriggersCaptchaHook under correct name

also fix the var name to match the one in the interface

Bug: T303433
Follow-Up: If48689fe068aa3ec56e51e01b84cf25c63bcbf0b
Change-Id: Ie47b98d08cba5217f8661aa44f6331447575d7ae
This commit is contained in:
Alexander Vorwerk 2022-07-29 02:19:27 +02:00
parent a2daa171bb
commit 16fcb03340
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
]
);