mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 09:30:06 +00:00
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:
parent
a2daa171bb
commit
16fcb03340
|
@ -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
|
||||
|
|
|
@ -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
|
||||
]
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue