From: Derick Alangi Date: Mon, 15 Apr 2019 19:21:21 +0000 (+0100) Subject: context: Replace deprecated use of SkinFactory::getDefaultInstance() X-Git-Tag: 1.34.0-rc.0~1948^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=30867990148a6c8078cd5139726a53308b82b2ed;p=lhc%2Fweb%2Fwiklou.git context: Replace deprecated use of SkinFactory::getDefaultInstance() Replace with MediaWikiServices::getInstance()->getSkinFactory() Change-Id: I2cf7afad249e52e13a56fbe92b1665dfebec793f --- diff --git a/includes/context/RequestContext.php b/includes/context/RequestContext.php index a4225a1436..aada514f3a 100644 --- a/includes/context/RequestContext.php +++ b/includes/context/RequestContext.php @@ -368,7 +368,7 @@ class RequestContext implements IContextSource, MutableContext { if ( $this->skin === null ) { $skin = null; Hooks::run( 'RequestContextCreateSkin', [ $this, &$skin ] ); - $factory = SkinFactory::getDefaultInstance(); + $factory = MediaWikiServices::getInstance()->getSkinFactory(); // If the hook worked try to set a skin from it if ( $skin instanceof Skin ) {