X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fskins%2FSkinFactory.php;h=cc993aaf9b50eebd09f2677ad67d90c175f1228d;hb=d503ac7c9433a36358b1db27c6365167ea869832;hp=ffbe6293f8ea61230dad3832acc261835795eae2;hpb=e6e68618810b828a7de84dfe164e768da8ba90bf;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/skins/SkinFactory.php b/includes/skins/SkinFactory.php index ffbe6293f8..cc993aaf9b 100644 --- a/includes/skins/SkinFactory.php +++ b/includes/skins/SkinFactory.php @@ -21,6 +21,8 @@ * @file */ +use MediaWiki\MediaWikiServices; + /** * Factory class to create Skin objects * @@ -32,26 +34,21 @@ class SkinFactory { * Map of name => callback * @var array */ - private $factoryFunctions = array(); + private $factoryFunctions = []; /** * Map of name => fallback human-readable name, used when the 'skinname-' message is not * available * * @var array */ - private $displayNames = array(); + private $displayNames = []; /** - * @var SkinFactory + * @deprecated in 1.27 + * @return SkinFactory */ - private static $self; - public static function getDefaultInstance() { - if ( !self::$self ) { - self::$self = new self; - } - - return self::$self; + return MediaWikiServices::getInstance()->getSkinFactory(); } /**