Bug 27619: Remove the option to show broken links as: link?
authorDerk-Jan Hartman <hartman@users.mediawiki.org>
Sun, 19 Feb 2012 13:06:18 +0000 (13:06 +0000)
committerDerk-Jan Hartman <hartman@users.mediawiki.org>
Sun, 19 Feb 2012 13:06:18 +0000 (13:06 +0000)
Being bold here, but otherwise it will still be there in 2016

RELEASE-NOTES-1.20
includes/DefaultSettings.php
includes/Preferences.php
includes/resourceloader/ResourceLoaderUserCSSPrefsModule.php
skins/Simple.php
skins/nostalgia/screen.css
skins/simple/main.css

index aa5edcb..1889c55 100644 (file)
@@ -20,6 +20,7 @@ production.
 * (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.
index aa589eb..1b43d0c 100644 (file)
@@ -3231,7 +3231,6 @@ $wgDefaultUserOptions = array(
        'gender'                  => 'unknown',
        'hideminor'               => 0,
        'hidepatrolled'           => 0,
-       'highlightbroken'         => 1,
        'imagesize'               => 2,
        'justify'                 => 0,
        'math'                    => 1,
index 2b4d352..1baf453 100644 (file)
@@ -638,11 +638,6 @@ class Preferences {
                );
 
                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',
index b5a2435..80b767b 100644 (file)
@@ -92,13 +92,6 @@ class ResourceLoaderUserCSSPrefsModule extends ResourceLoaderModule {
                                $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";
                        }
index 54be9f7..0e1668b 100644 (file)
@@ -36,13 +36,6 @@ class SkinSimple extends SkinTemplate {
                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' );
 
index d618362..aed5715 100644 (file)
@@ -14,6 +14,10 @@ body {
        padding: 2px;
 }
 
+a.new {
+       color: #ba0000;
+}
+
 a.interwiki,
 a.external {
        color: #3366BB;
index 3e08658..b2e70ba 100644 (file)
@@ -345,6 +345,7 @@ a.stub {
 }
 a.new,
 #p-personal a.new {
+       color: #BA0000;
        text-decoration: line-through;
 }
 li.new {