Fix common.css so that it loads correctly, remove inclusions of it from other CSS...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 22 Oct 2006 02:42:36 +0000 (02:42 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 22 Oct 2006 02:42:36 +0000 (02:42 +0000)
includes/DefaultSettings.php
includes/Skin.php
skins/common/cologneblue.css
skins/common/nostalgia.css
skins/common/wikistandard.css

index 1fec1aa..d6033a8 100644 (file)
@@ -1030,7 +1030,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches don't keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '19';
+$wgStyleVersion = '20';
 
 # Server-side caching:
 
index 72fa8a2..f349c39 100644 (file)
@@ -363,9 +363,8 @@ class Skin extends Linker {
                global $wgStylePath, $wgRequest, $wgContLang, $wgSquidMaxage, $wgStyleVersion;
                $sheet = $this->getStylesheet();
                $action = $wgRequest->getText('action');
-               // fixme: the common.css import might be doubled now...
-               $s = "@import \"$wgStylePath/common.css?$wgStyleVersion\";\n";
-               $s = "@import \"$wgStylePath/$sheet?$wgStyleVersion\";\n";
+               $s = "@import \"$wgStylePath/common/common.css?$wgStyleVersion\";\n";
+               $s .= "@import \"$wgStylePath/$sheet?$wgStyleVersion\";\n";
                if($wgContLang->isRTL()) $s .= "@import \"$wgStylePath/common/common_rtl.css?$wgStyleVersion\";\n";
 
                $query = "usemsgcache=yes&action=raw&ctype=text/css&smaxage=$wgSquidMaxage";
index 1e27756..8153d3c 100644 (file)
@@ -1,5 +1,3 @@
-@import url("common.css?3");
-
 body { margin: 0px; padding: 0px; color: black; }
 #specialform { display: inline; }
 #content { top: 0; margin: 0; padding: 0; }
index da0f252..c9b36a7 100644 (file)
@@ -1,4 +1,3 @@
-@import url("common.css?3");
 body {
        /* Background color is set separately on page type */
        color: black;
index 2e18a89..532e4fd 100644 (file)
@@ -1,5 +1,3 @@
-@import url("common.css?3");
-
 #article { padding: 4px; }
 #content { margin: 0; padding: 0; }
 #footer { padding: 4px;font-size:95%;clear: both; }