From: Arne Heizmann Date: Fri, 16 Jul 2004 20:52:23 +0000 (+0000) Subject: As far as I can see, there is currently no way to specify a global CSS for the Classi... X-Git-Tag: 1.5.0alpha1~2663 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=d4f0bb5ca3c1563b74ef21b5cce30b85de5cd893;p=lhc%2Fweb%2Fwiklou.git As far as I can see, there is currently no way to specify a global CSS for the Classic skin in the way it is possible for Monobook with [[MediaWiki:Monobook.css]]. This patch adds this capability, at [[MediaWiki:Standard.css]] (well, technically, at [[MediaWiki:.css]], so it's not my fault it's called "Standard" and not "Classic". ;-) ) --- diff --git a/includes/Skin.php b/includes/Skin.php index db44468c1b..5c16a87fb1 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -200,16 +200,17 @@ class Skin { function doGetUserStyles() { - global $wgUser; + global $wgUser, $wgLang; + + $csspage = $wgLang->getNsText( NS_MEDIAWIKI ) . ":" . $this->getSkinName() . ".css"; + $s = '@import "'.$this->makeUrl($csspage, 'action=raw&ctype=text/css')."\";\n"; - $s = ''; if ( 1 == $wgUser->getOption( 'underline' ) ) { # Don't override browser settings } else { # CHECK MERGE @@@ # Force no underline - $s .= 'a { ' . - "text-decoration: none; }\n"; + $s .= "a { text-decoration: none; }\n"; } if ( 1 == $wgUser->getOption( 'highlightbroken' ) ) { $s .= "a.new, #quickbar a.new { color: #CC2200; }\n";