dummy parameter with "$dummy=false" in their code and return without echoing
any HTML to avoid creating duplicate toolbox items.
-'SkinVectorStyleModules': Called when defining the list of module styles to be
-loaded by the Vector skin.
-$skin: SkinVector object
-&$styles: Array of module names whose style will be loaded for the skin
-
'SoftwareInfo': Called by Special:Version for returning information about the
software.
$software: The array of software in format 'name' => 'version'. See
function getExtensionCredits() {
global $wgExtensionCredits;
- if ( !count( $wgExtensionCredits ) ) {
+ if (
+ count( $wgExtensionCredits ) === 0 ||
+ // Skins are displayed separately, see getSkinCredits()
+ ( count( $wgExtensionCredits ) === 1 && isset( $wgExtensionCredits['skin'] ) )
+ ) {
return '';
}
* @return string Wikitext
*/
function getSkinCredits() {
+ global $wgExtensionCredits;
+ if ( !isset( $wgExtensionCredits['skin'] ) || count( $wgExtensionCredits['skin'] ) === 0 ) {
+ return '';
+ }
+
$out = Xml::element(
'h2',
array( 'id' => 'mw-version-skin' ),