From: Charles Melbye Date: Sun, 16 Nov 2008 21:09:32 +0000 (+0000) Subject: Forgot to update one part, and also got rid of some historial stuff (hiding X-Git-Tag: 1.31.0-rc.0~44323 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=8df706c465ac634001089c4ee98e44bf70f01b68;p=lhc%2Fweb%2Fwiklou.git Forgot to update one part, and also got rid of some historial stuff (hiding preview links if they can't choose a skin). --- diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index fb9e703526..14e91585f7 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -838,7 +838,7 @@ class PreferencesForm { # Skin # global $wgAllowUserSkin; - if( $wgAllowUserSkin ) { + if( $wgAllowUserSkin || $wgUser->isAllowed( 'alwaysuseskin' ) ) { $wgOut->addHTML( "
\n\n" . wfMsg('skin') . "\n" ); $mptitle = Title::newMainPage(); $previewtext = wfMsg('skin-preview'); @@ -856,7 +856,7 @@ class PreferencesForm { foreach ($validSkinNames as $skinkey => $sn ) { $checked = $skinkey == $this->mSkin ? ' checked="checked"' : ''; $mplink = htmlspecialchars($mptitle->getLocalURL("useskin=$skinkey")); - $previewlink = $wgAllowUserSkin ? "($previewtext)" : ''; + $previewlink = "($previewtext)"; if( $skinkey == $wgDefaultSkin ) $sn .= ' (' . wfMsg( 'default' ) . ')'; $wgOut->addHTML( " $previewlink
\n" );