From 30867990148a6c8078cd5139726a53308b82b2ed Mon Sep 17 00:00:00 2001 From: Derick Alangi Date: Mon, 15 Apr 2019 20:21:21 +0100 Subject: [PATCH] context: Replace deprecated use of SkinFactory::getDefaultInstance() Replace with MediaWikiServices::getInstance()->getSkinFactory() Change-Id: I2cf7afad249e52e13a56fbe92b1665dfebec793f --- includes/context/RequestContext.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1