Hooks.php: Use namespaced ConfirmEdit class

Bug: T355198
Change-Id: I938ffea8927f572508226acffefbd2dd000977f4
This commit is contained in:
Reedy 2024-01-17 12:39:59 +00:00 committed by TheDJ
parent 1032dd6f0a
commit 5069b235fb

View file

@ -17,6 +17,7 @@ use MediaWiki\ChangeTags\Hook\ChangeTagsListActiveHook;
use MediaWiki\ChangeTags\Hook\ListDefinedTagsHook;
use MediaWiki\Config\Config;
use MediaWiki\EditPage\EditPage;
use MediaWiki\Extension\ConfirmEdit\Hooks as ConfirmEditHooks;
use MediaWiki\Extension\DiscussionTools\Hooks as DiscussionToolsHooks;
use MediaWiki\Extension\EventLogging\EventLogging;
use MediaWiki\Hook\EditPage__attemptSave_afterHook;
@ -527,7 +528,7 @@ class Hooks implements
if ( ExtensionRegistry::getInstance()->isLoaded( 'ConfirmEdit' ) ) {
$key = CacheKeyHelper::getKeyForPage( $wikiPage );
/** @var SimpleCaptcha $captcha */
$captcha = \ConfirmEditHooks::getInstance();
$captcha = ConfirmEditHooks::getInstance();
$activatedCaptchas = $captcha->getActivatedCaptchas();
if ( isset( $activatedCaptchas[$key] ) ) {
// TODO: :(