From 0e1681a7c290e8c8b897d80f1e362b3ef7ea90ca Mon Sep 17 00:00:00 2001 From: Tom Gilder Date: Sun, 16 Jan 2005 13:45:23 +0000 Subject: [PATCH] Fix IE freezing rendering whilst waiting for CSS with MonoBook (bug 624) (take 3) --- includes/SkinTemplate.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 0c3f50294c..23cb8a67f1 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -809,7 +809,7 @@ class SkinTemplate extends Skin { $fname = 'SkinTemplate::setupUserCss'; wfProfileIn( $fname ); - global $wgRequest, $wgTitle, $wgAllowUserCss, $wgUseSiteCss, $wgContLang; + global $wgRequest, $wgTitle, $wgAllowUserCss, $wgUseSiteCss, $wgContLang, $wgSquidMaxage, $wgStylePath; $sitecss = ''; $usercss = ''; @@ -832,10 +832,10 @@ class SkinTemplate extends Skin { } } - # If we use the site's dynamic CSS, throw that in, too + if ($wgContLang->isRTL()) $sitecss .= '@import "' . $wgStylePath . '/' . $this->stylename . '/rtl.css";' . "\n"; + # If we use the site's dynamic CSS, throw that in, too if ( $wgUseSiteCss ) { - if ($wgContLang->isRTL()) $s .= '@import "' . $wgStylePath . '/' . $this->stylename . '/rtl.css";' . "\n"; $sitecss .= '@import "' . $this->makeNSUrl(ucfirst($this->skinname) . '.css', 'action=raw&ctype=text/css&smaxage=' . $wgSquidMaxage, NS_MEDIAWIKI) . '";' . "\n"; $sitecss .= '@import "' . $this->makeUrl('-','action=raw&gen=css' . $siteargs) . '";' . "\n"; } @@ -877,9 +877,7 @@ class SkinTemplate extends Skin { $fname = 'SkinTemplate::getUserStylesheet'; wfProfileIn( $fname ); - global $wgUser, $wgRequest, $wgTitle, $wgContLang, $wgSquidMaxage, $wgStylePath; - $action = $wgRequest->getText('action'); - $maxage = $wgRequest->getText('maxage'); + global $wgUser; $s = "/* generated user stylesheet */\n"; if($wgUser->getID() != 0) { -- 2.20.1