mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-23 22:03:31 +00:00
Replace deprecated ConfigFactory::getDefaultInstance
Bug: T325966 Change-Id: I2bbaa9d1a65e4f33cb9d919237d8664e3f74a51e
This commit is contained in:
parent
105206403f
commit
4b479f6427
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue