https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111861

Revision: 111861
Author:   hartman
Date:     2012-02-19 13:06:18 +0000 (Sun, 19 Feb 2012)
Log Message:
-----------
Bug 27619: Remove the option to show broken links as: link?

Being bold here, but otherwise it will still be there in 2016

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES-1.20
    trunk/phase3/includes/DefaultSettings.php
    trunk/phase3/includes/Preferences.php
    trunk/phase3/includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php
    trunk/phase3/skins/Simple.php
    trunk/phase3/skins/nostalgia/screen.css
    trunk/phase3/skins/simple/main.css

Modified: trunk/phase3/RELEASE-NOTES-1.20
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.20     2012-02-19 10:02:42 UTC (rev 111860)
+++ trunk/phase3/RELEASE-NOTES-1.20     2012-02-19 13:06:18 UTC (rev 111861)
@@ -20,6 +20,7 @@
 * (bug 31417) New ID mw-content-text around the actual page text, without 
categories,
   contentSub, ... The same div often also contains the class 
mw-content-ltr/rtl.
 * (bug 34475) Add support for IP/CIDR notation to tablesorter
+* (bug 27619) Remove preference option to display broken links as link?
 
 === Bug fixes in 1.20 ===
 * (bug 30245) Use the correct way to construct a log page title.

Modified: trunk/phase3/includes/DefaultSettings.php
===================================================================
--- trunk/phase3/includes/DefaultSettings.php   2012-02-19 10:02:42 UTC (rev 
111860)
+++ trunk/phase3/includes/DefaultSettings.php   2012-02-19 13:06:18 UTC (rev 
111861)
@@ -3231,7 +3231,6 @@
        'gender'                  => 'unknown',
        'hideminor'               => 0,
        'hidepatrolled'           => 0,
-       'highlightbroken'         => 1,
        'imagesize'               => 2,
        'justify'                 => 0,
        'math'                    => 1,

Modified: trunk/phase3/includes/Preferences.php
===================================================================
--- trunk/phase3/includes/Preferences.php       2012-02-19 10:02:42 UTC (rev 
111860)
+++ trunk/phase3/includes/Preferences.php       2012-02-19 13:06:18 UTC (rev 
111861)
@@ -638,11 +638,6 @@
                );
 
                if ( $wgAllowUserCssPrefs ) {
-                       $defaultPreferences['highlightbroken'] = array(
-                               'type' => 'toggle',
-                               'section' => 'rendering/advancedrendering',
-                               'label' => $context->msg( 'tog-highlightbroken' 
)->text(), // Raw HTML
-                       );
                        $defaultPreferences['showtoc'] = array(
                                'type' => 'toggle',
                                'section' => 'rendering/advancedrendering',

Modified: 
trunk/phase3/includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php
===================================================================
--- trunk/phase3/includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php   
2012-02-19 10:02:42 UTC (rev 111860)
+++ trunk/phase3/includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php   
2012-02-19 13:06:18 UTC (rev 111861)
@@ -92,13 +92,6 @@
                                $rules[] = 'a:lang(ar), a:lang(ckb), 
a:lang(fa),a:lang(kk-arab), ' .
                                'a:lang(mzn), a:lang(ps), a:lang(ur) { 
text-decoration: none; }';
                        }
-                       if ( $options['highlightbroken'] ) {
-                               $rules[] = "a.new, #quickbar a.new { color: 
#ba0000; }\n";
-                       } else {
-                               $rules[] = "a.new, #quickbar a.new, a.stub, 
#quickbar a.stub { color: inherit; }";
-                               $rules[] = "a.new:after, #quickbar a.new:after 
{ content: '?'; color: #ba0000; }";
-                               $rules[] = "a.stub:after, #quickbar 
a.stub:after { content: '!'; color: #772233; }";
-                       }
                        if ( $options['justify'] ) {
                                $rules[] = "#article, #bodyContent, #mw_content 
{ text-align: justify; }\n";
                        }

Modified: trunk/phase3/skins/Simple.php
===================================================================
--- trunk/phase3/skins/Simple.php       2012-02-19 10:02:42 UTC (rev 111860)
+++ trunk/phase3/skins/Simple.php       2012-02-19 13:06:18 UTC (rev 111861)
@@ -36,13 +36,6 @@
                if ( $this->getUser()->getOption( 'underline' ) < 2 ) {
                        $underline = "text-decoration: " . 
$this->getUser()->getOption( 'underline' ) ? 'underline !important' : 'none' . 
";";
                }
-
-               /* Also inherits from resourceloader */
-               if( !$this->getUser()->getOption( 'highlightbroken' ) ) {
-                       $rules[] = "a.new, a.stub { color: inherit; 
text-decoration: inherit;}";
-                       $rules[] = "a.new:after { color: #CC2200; $underline;}";
-                       $rules[] = "a.stub:after { $underline; }";
-               }
                $style = implode( "\n", $rules );
                $out->addInlineStyle( $style, 'flip' );
 

Modified: trunk/phase3/skins/nostalgia/screen.css
===================================================================
--- trunk/phase3/skins/nostalgia/screen.css     2012-02-19 10:02:42 UTC (rev 
111860)
+++ trunk/phase3/skins/nostalgia/screen.css     2012-02-19 13:06:18 UTC (rev 
111861)
@@ -14,6 +14,10 @@
        padding: 2px;
 }
 
+a.new {
+       color: #ba0000;
+}
+
 a.interwiki,
 a.external {
        color: #3366BB;

Modified: trunk/phase3/skins/simple/main.css
===================================================================
--- trunk/phase3/skins/simple/main.css  2012-02-19 10:02:42 UTC (rev 111860)
+++ trunk/phase3/skins/simple/main.css  2012-02-19 13:06:18 UTC (rev 111861)
@@ -345,6 +345,7 @@
 }
 a.new,
 #p-personal a.new {
+       color: #BA0000;
        text-decoration: line-through;
 }
 li.new {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to