Merge "context: Replace deprecated use of SkinFactory::getDefaultInstance()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 16 Apr 2019 19:11:18 +0000 (19:11 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 16 Apr 2019 19:11:18 +0000 (19:11 +0000)
includes/context/RequestContext.php

index a4225a1..aada514 100644 (file)
@@ -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 ) {