dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update IPSet use statements
[lhc/web/wiklou.git]
/
includes
/
skins
/
SkinFactory.php
diff --git
a/includes/skins/SkinFactory.php
b/includes/skins/SkinFactory.php
index
366862d
..
cc993aa
100644
(file)
--- a/
includes/skins/SkinFactory.php
+++ b/
includes/skins/SkinFactory.php
@@
-21,6
+21,8
@@
* @file
*/
* @file
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Factory class to create Skin objects
*
/**
* Factory class to create Skin objects
*
@@
-42,16
+44,11
@@
class SkinFactory {
private $displayNames = [];
/**
private $displayNames = [];
/**
- * @var SkinFactory
+ * @deprecated in 1.27
+ * @return SkinFactory
*/
*/
- private static $self;
-
public static function getDefaultInstance() {
public static function getDefaultInstance() {
- if ( !self::$self ) {
- self::$self = new self;
- }
-
- return self::$self;
+ return MediaWikiServices::getInstance()->getSkinFactory();
}
/**
}
/**