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.
*
}
}
- /**
- * Factory method for loading a skin of a given type
- * @param string $key 'monobook', 'vector', etc.
- * @return Skin
- * @deprecated since 1.24; Use SkinFactory instead
- */
- static function &newFromKey( $key ) {
- wfDeprecated( __METHOD__, '1.24' );
-
- $key = Skin::normalizeKey( $key );
- $factory = SkinFactory::getDefaultInstance();
-
- // normalizeKey() guarantees that a skin with this key will exist.
- $skin = $factory->makeSkin( $key );
- return $skin;
- }
-
/**
* @return string Skin name
*/
}
/**
- * @return string
+ * @return string HTML
*/
function getCategoryLinks() {
global $wgUseCategoryBrowser;
}
/**
- * @return string
+ * @return string HTML
*/
function getCategories() {
$out = $this->getOutput();
-
$catlinks = $this->getCategoryLinks();
- $classes = 'catlinks';
-
// Check what we're showing
$allCats = $out->getCategoryLinks();
$showHidden = $this->getUser()->getBoolOption( 'showhiddencats' ) ||
$this->getTitle()->getNamespace() == NS_CATEGORY;
+ $classes = [ 'catlinks' ];
if ( empty( $allCats['normal'] ) && !( !empty( $allCats['hidden'] ) && $showHidden ) ) {
- $classes .= ' catlinks-allhidden';
+ $classes[] = 'catlinks-allhidden';
}
- return "<div id='catlinks' class='$classes' data-mw='interface'>{$catlinks}</div>";
+ return Html::rawElement(
+ 'div',
+ [ 'id' => 'catlinks', 'class' => $classes, 'data-mw' => 'interface' ],
+ $catlinks
+ );
}
/**
* @return null|string
*/
function getCopyrightIcon() {
- global $wgRightsUrl, $wgRightsText, $wgRightsIcon, $wgCopyrightIcon;
+ global $wgRightsUrl, $wgRightsText, $wgRightsIcon, $wgFooterIcons;
$out = '';
- if ( $wgCopyrightIcon ) {
- $out = $wgCopyrightIcon;
+ if ( $wgFooterIcons['copyright']['copyright'] ) {
+ $out = $wgFooterIcons['copyright']['copyright'];
} elseif ( $wgRightsIcon ) {
$icon = htmlspecialchars( $wgRightsIcon );
$targetUser->canReceiveEmail();
}
- /**
- * This function previously returned a fully resolved style path URL to images or styles stored in
- * the legacy skins/common/ directory.
- *
- * That directory has been removed in 1.24 and the function always returns an empty string.
- *
- * @deprecated since 1.24
- * @param string $name The name or path of a skin resource file
- * @return string Empty string
- */
- function getCommonStylePath( $name ) {
- wfDeprecated( __METHOD__, '1.24' );
- return '';
- }
-
/**
* Return a fully resolved style path url to images or styles stored in the current skins's folder.
* This method returns a url resolved using the configured skin style path
return $bar;
}
- /**
- * This function previously controlled whether the 'mediawiki.legacy.wikiprintable' module
- * should be loaded by OutputPage. That module no longer exists and the return value of this
- * method is ignored.
- *
- * If your skin doesn't provide its own print styles, the 'mediawiki.legacy.commonPrint' module
- * can be used instead (SkinTemplate-based skins do it automatically).
- *
- * @deprecated since 1.22
- * @return bool
- */
- public function commonPrintStylesheet() {
- wfDeprecated( __METHOD__, '1.22' );
- return false;
- }
-
/**
* Gets new talk page messages for the current user and returns an
* appropriate alert message (or an empty string if there are no messages)