From: Charles Melbye Date: Sat, 1 Nov 2008 06:11:40 +0000 (+0000) Subject: Let's hide the (preview) link, as it won't do anything now. X-Git-Tag: 1.31.0-rc.0~44488 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=ae9da9f32292316db2c2f90e0e7c7d3eb394a806;p=lhc%2Fweb%2Fwiklou.git Let's hide the (preview) link, as it won't do anything now. --- diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index bc9dbc9d31..d7fec6f57e 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -860,7 +860,7 @@ class PreferencesForm { $checked = $wgAllowUserSkin ? $checked . '' : $checked . ' disabled=\'disabled\''; $mplink = htmlspecialchars($mptitle->getLocalURL("useskin=$skinkey")); - $previewlink = "($previewtext)"; + $previewlink = $wgAllowUserSkin ? "($previewtext)" : ''; if( $skinkey == $wgDefaultSkin ) $sn .= ' (' . wfMsg( 'default' ) . ')'; $wgOut->addHTML( " $previewlink
\n" );