mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-27 09:42:11 +00:00
Hooks.php: Use namespaced ConfirmEdit class
Bug: T355198 Change-Id: I938ffea8927f572508226acffefbd2dd000977f4
This commit is contained in:
parent
1032dd6f0a
commit
5069b235fb
|
@ -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: :(
|
||||
|
|
Loading…
Reference in a new issue