Hygiene: Do not use ConfigFactory::getDefaultInstance()
ConfigFactory::getDefaultInstance() is deprecated and code should use MediaWikiServices instead Change-Id: I085c6cfd724e6005bf8ea6933bf13de98dadb018
This commit is contained in:
parent
d1d639a3ab
commit
678e39fb91
|
@ -37,7 +37,8 @@ class SkinVector extends SkinTemplate {
|
|||
private $responsiveMode = false;
|
||||
|
||||
public function __construct() {
|
||||
$this->vectorConfig = ConfigFactory::getDefaultInstance()->makeConfig( 'vector' );
|
||||
$this->vectorConfig = \MediaWiki\MediaWikiServices::getInstance()->getConfigFactory()
|
||||
->makeConfig( 'vector' );
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
|
|
Loading…
Reference in New Issue