mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 17:40:11 +00:00
Merge "Run ConfirmEditTriggersCaptchaHook under correct name"
This commit is contained in:
commit
00470e1388
|
@ -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