From 071da49d3d20a9eb1f129ad886a6a4dcf28bf8f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 23 Nov 2007 08:40:46 +0000 Subject: [PATCH] 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. --- includes/Skin.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; } -- 2.20.1