From: Brion Vibber Date: Tue, 5 Aug 2008 04:50:24 +0000 (+0000) Subject: Revert r38587, r38589 for now ("(bug 2314) Add links to users custom CSS and JS... X-Git-Tag: 1.31.0-rc.0~46131 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=e7d168d18b42187f19ee714f5b3d7f9341421497;p=lhc%2Fweb%2Fwiklou.git Revert r38587, r38589 for now ("(bug 2314) Add links to users custom CSS and JS into Special:Preferences") This clutters up the prefs UI with a lot of links which don't currently apply, most of which will never be used. It also isn't clear how it would apply to proposed non-skin-specific pages such as User:X/common.css/.js and User:X/print.css --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0eedf64b4e..268e0452cd 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -44,7 +44,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN ables into into the output of Skin::makeVariablesScript * Added $wgAddGroups and $wgRemoveGroups display on Special:ListGroupRights * (bug 14377) Add a date selector to history pages -* (bug 2314) Add links to users custom CSS and JS into Special:Preferences === Bug fixes in 1.14 === diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index a04c3e8fe4..c3eea3a45c 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -814,20 +814,9 @@ class PreferencesForm { # Skin # - global $wgAllowUserCss, $wgAllowUserJs; - $wgOut->addHTML( - Xml::openElement( 'fieldset' ) . - Xml::element( 'legend', null, wfMsg( 'skin' ) ) . "\n" - ); - $wgOut->addWikiMsg( 'skin-header' ); - if ( $wgAllowUserCss ) - $wgOut->addWikiMsg( 'skin-header-css' ); - - if ( $wgAllowUserJs ) - $wgOut->addWikiMsg( 'skin-header-js' ); - + $wgOut->addHTML( "
\n\n" . wfMsg('skin') . "\n" ); $mptitle = Title::newMainPage(); - $previewtext = wfMsg('skin-preview'); + $previewtext = wfMsg('skinpreview'); # Only show members of Skin::getSkinNames() rather than # $skinNames (skins is all skin names from Language.php) $validSkinNames = Skin::getSkinNames(); @@ -843,27 +832,15 @@ class PreferencesForm { if ( in_array( $skinkey, $wgSkipSkins ) ) { continue; } - - $linkToCSS = $linkToJS = ''; - if ( $wgAllowUserCss ) { - $pageCSS = Title::makeTitle( NS_USER, $wgUser->getName() . '/' . $skinkey . '.css' ); - $linkToCSS = ' | ' . $sk->link( $pageCSS, wfMsg( 'skin-link-to-css' ) ); - } - if ( $wgAllowUserJs ) { - $pageJS = Title::makeTitle( NS_USER, $wgUser->getName() . '/' . $skinkey . '.js' ); - $linkToJS = ' | ' . $sk->link( $pageJS, wfMsg( 'skin-link-to-js' ) ); - } - $checked = $skinkey == $this->mSkin ? ' checked="checked"' : ''; $mplink = htmlspecialchars($mptitle->getLocalURL("useskin=$skinkey")); - $linkLine = " ($previewtext" . $linkToCSS . $linkToJS . ')'; - if( $skinkey == $wgDefaultSkin ) { + $previewlink = "$previewtext"; + if( $skinkey == $wgDefaultSkin ) $sn .= ' (' . wfMsg( 'default' ) . ')'; - } - $wgOut->addHTML( " $linkLine
\n" ); + $wgOut->addHTML( " $previewlink
\n" ); } - $wgOut->addHTML( Xml::closeElement( 'fieldset' ) ); + $wgOut->addHTML( "
\n\n" ); # Math # diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 6698a30b8e..6428142731 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -537,6 +537,8 @@ XHTML id names. 'underline-never' => 'Never', 'underline-default' => 'Browser default', +'skinpreview' => '(Preview)', + # Dates 'sunday' => 'Sunday', 'monday' => 'Monday', @@ -1401,12 +1403,6 @@ Note that their indexes of {{SITENAME}} content may be out of date.', 'qbsettings-floatingright' => 'Floating right', 'changepassword' => 'Change password', 'skin' => 'Skin', -'skin-header' => 'Available skins.', -'skin-header-css' => '* With the associated cascading style sheets (CSS) pages you can customize each skin.', -'skin-header-js' => '* With the associated JavaScript (JS) pages you can add own scripts to each skin.', -'skin-preview' => 'Preview', -'skin-link-to-css' => 'associated CSS', -'skin-link-to-js' => 'associated JS', 'math' => 'Math', 'dateformat' => 'Date format', 'datedefault' => 'No preference', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 23c2fbe50a..7618d847db 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -58,6 +58,9 @@ $wgMessageStructure = array( 'underline-never', 'underline-default', ), + 'skinpreview' => array( + 'skinpreview', + ), 'dates' => array( 'sunday', 'monday', @@ -749,12 +752,6 @@ $wgMessageStructure = array( 'qbsettings-floatingright', 'changepassword', 'skin', - 'skin-header', - 'skin-header-css', - 'skin-header-js', - 'skin-preview', - 'skin-link-to-css', - 'skin-link-to-js', 'math', 'dateformat', 'datedefault', @@ -2627,6 +2624,7 @@ XHTML id it should only appear once and include characters that are legal XHTML id names.", 'toggles' => 'User preference toggles', 'underline' => '', + 'skinpreview' => '', 'dates' => 'Dates', 'categorypages' => 'Categories related messages', 'mainpage' => '',