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
Merge "PrefixSearch: Remove unnecessary wfSuppressWarnings()"
[lhc/web/wiklou.git]
/
includes
/
Skin.php
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
9ec7c31
..
e6abdfb
100644
(file)
--- a/
includes/Skin.php
+++ b/
includes/Skin.php
@@
-92,9
+92,9
@@
abstract class Skin extends ContextSource {
* Fetch the list of user-selectable skins in regards to $wgSkipSkins.
* Useful for Special:Preferences and other places where you
* only want to show skins users _can_ use.
* Fetch the list of user-selectable skins in regards to $wgSkipSkins.
* Useful for Special:Preferences and other places where you
* only want to show skins users _can_ use.
- * @return
array of strings
+ * @return
string[]
*/
*/
- public static function get
Usable
Skins() {
+ public static function get
Allowed
Skins() {
global $wgSkipSkins;
$allowedSkins = self::getSkinNames();
global $wgSkipSkins;
$allowedSkins = self::getSkinNames();
@@
-106,6
+106,15
@@
abstract class Skin extends ContextSource {
return $allowedSkins;
}
return $allowedSkins;
}
+ /**
+ * @deprecated since 1.23, use getAllowedSkins
+ * @return string[]
+ */
+ public static function getUsableSkins() {
+ wfDeprecated( __METHOD__, '1.23' );
+ return self::getAllowedSkins();
+ }
+
/**
* Normalize a skin preference value to a form that can be loaded.
* If a skin can't be found, it will fall back to the configured
/**
* Normalize a skin preference value to a form that can be loaded.
* If a skin can't be found, it will fall back to the configured