Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -868,14 +868,18 @@ |
869 | 869 | $checked = $skinkey == $this->mSkin ? ' checked="checked"' : ''; |
870 | 870 | $mplink = htmlspecialchars( $mptitle->getLocalURL( "useskin=$skinkey" ) ); |
871 | 871 | $previewlink = "(<a target='_blank' href=\"$mplink\">$previewtext</a>)"; |
872 | | - $cssPage = Title::makeTitleSafe( NS_USER, $wgUser->getName().'/'.$skinkey.'.css' ); |
873 | | - $jsPage = Title::makeTitleSafe( NS_USER, $wgUser->getName().'/'.$skinkey.'.js' ); |
874 | | - $customCSS = $sk->makeLinkObj( $cssPage, wfMsgHtml('prefs-custom-css') ); |
875 | | - $customJS = $sk->makeLinkObj( $jsPage, wfMsgHtml('prefs-custom-js') ); |
| 872 | + $extraLinks = ''; |
| 873 | + if( $skinkey == $this->mSkin ) { |
| 874 | + $cssPage = Title::makeTitleSafe( NS_USER, $wgUser->getName().'/'.$skinkey.'.css' ); |
| 875 | + $jsPage = Title::makeTitleSafe( NS_USER, $wgUser->getName().'/'.$skinkey.'.js' ); |
| 876 | + $customCSS = $sk->makeLinkObj( $cssPage, wfMsgHtml('prefs-custom-css') ); |
| 877 | + $customJS = $sk->makeLinkObj( $jsPage, wfMsgHtml('prefs-custom-js') ); |
| 878 | + $extraLinks = " ($customCSS) ($customJS)"; |
| 879 | + } |
876 | 880 | if( $skinkey == $wgDefaultSkin ) |
877 | 881 | $sn .= ' (' . wfMsg( 'default' ) . ')'; |
878 | 882 | $wgOut->addHTML( "<input type='radio' name='wpSkin' id=\"wpSkin$skinkey\" value=\"$skinkey\"$checked /> |
879 | | - <label for=\"wpSkin$skinkey\">{$sn}</label> $previewlink ($customCSS) ($customJS)<br />\n" ); |
| 883 | + <label for=\"wpSkin$skinkey\">{$sn}</label> $previewlink{$extraLinks}<br />\n" ); |
880 | 884 | } |
881 | 885 | $wgOut->addHTML( "</fieldset>\n\n" ); |
882 | 886 | } |