diff --git a/includes/ImageMap.php b/includes/ImageMap.php index 1cfe93c..48a5b8a 100644 --- a/includes/ImageMap.php +++ b/includes/ImageMap.php @@ -20,7 +20,6 @@ namespace MediaWiki\Extension\ImageMap; -use ConfigFactory; use DOMDocumentFragment; use DOMElement; use MediaWiki\Hook\ParserFirstCallInitHook; @@ -57,7 +56,7 @@ class ImageMap implements ParserFirstCallInitHook { */ public function render( $input, $params, Parser $parser ) { global $wgUrlProtocols, $wgNoFollowLinks; - $config = ConfigFactory::getDefaultInstance()->makeConfig( 'main' ); + $config = MediaWikiServices::getInstance()->getMainConfig(); $enableLegacyMediaDOM = $config->get( 'ParserEnableLegacyMediaDOM' ); $lines = explode( "\n", $input );