X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSkin.php;h=e6abdfb6fb704e4ffadb529a947b9240f24d96b3;hb=208a625c54e92cb36cdc3acc8f859eeca5d36c7f;hp=9312a0ddff8adff8094064915e92ca61b2eaf6af;hpb=b42f229989084ea0b5c7dabea23a03c54460744c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Skin.php b/includes/Skin.php index 9312a0ddff..e6abdfb6fb 100644 --- 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. - * @return array of strings + * @return string[] */ - public static function getUsableSkins() { + public static function getAllowedSkins() { global $wgSkipSkins; $allowedSkins = self::getSkinNames(); @@ -106,6 +106,15 @@ abstract class Skin extends ContextSource { 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 @@ -960,9 +969,10 @@ abstract class Skin extends ContextSource { } /** - * @param $desc - * @param $page - * @return string + * Returns an HTML link for use in the footer + * @param string $desc i18n message key for the link text + * @param string $page i18n message key for the page to link to + * @return string HTML anchor */ public function footerLink( $desc, $page ) { // if the link description has been set to "-" in the default language, @@ -1572,14 +1582,14 @@ abstract class Skin extends ContextSource { * Create a section edit link. This supersedes editSectionLink() and * editSectionLinkForOther(). * - * @param $nt Title The title being linked to (may not be the same as + * @param $nt Title The title being linked to (may not be the same as * the current page, if the section is included from a template) * @param string $section The designation of the section being pointed to, * to be included in the link, like "§ion=$section" * @param string $tooltip The tooltip to use for the link: will be escaped * and wrapped in the 'editsectionhint' message - * @param $lang string Language code - * @return string HTML to use for edit link + * @param $lang string Language code + * @return string HTML to use for edit link */ public function doEditSectionLink( Title $nt, $section, $tooltip = null, $lang = false ) { // HTML generated here should probably have userlangattributes