From: Niklas Laxström Date: Fri, 23 Nov 2007 08:40:46 +0000 (+0000) Subject: Argh what a code. Underline setting "browser default" doesn't even work in monobook... X-Git-Tag: 1.31.0-rc.0~50747 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=071da49d3d20a9eb1f129ad886a6a4dcf28bf8f9;p=lhc%2Fweb%2Fwiklou.git Argh what a code. Underline setting "browser default" doesn't even work in monobook because it's forced to none. But in any case, let's not produce invalid css and throw ugly notices. --- diff --git a/includes/Skin.php b/includes/Skin.php index d6821a98da..e4769d5101 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -479,7 +479,7 @@ class Skin extends Linker { function reallyDoGetUserStyles() { global $wgUser; $s = ''; - if (($undopt = $wgUser->getOption("underline")) != 2) { + if (($undopt = $wgUser->getOption("underline")) < 2) { $underline = $undopt ? 'underline' : 'none'; $s .= "a { text-decoration: $underline; }\n"; } @@ -490,17 +490,14 @@ class Skin extends Linker { a.new, #quickbar a.new, a.stub, #quickbar a.stub { color: inherit; - text-decoration: inherit; } a.new:after, #quickbar a.new:after { content: "?"; color: #CC2200; - text-decoration: $underline; } a.stub:after, #quickbar a.stub:after { content: "!"; color: #772233; - text-decoration: $underline; } END; }