From ee2e8324902911c86a99c78ad3aff5d498cae763 Mon Sep 17 00:00:00 2001 From: Tom Gilder Date: Sun, 16 Jan 2005 13:21:51 +0000 Subject: [PATCH] Fix IE freezing rendering whilst waiting for CSS with MonoBook (bug 624) (take 2) --- includes/SkinTemplate.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 022de6263c..0c3f50294c 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -809,11 +809,11 @@ class SkinTemplate extends Skin { $fname = 'SkinTemplate::setupUserCss'; wfProfileIn( $fname ); - global $wgRequest, $wgTitle, $wgAllowUserCss, $wgUseSiteCss; + global $wgRequest, $wgTitle, $wgAllowUserCss, $wgUseSiteCss, $wgContLang; - $sitecss = ""; - $usercss = ""; - $siteargs = ""; + $sitecss = ''; + $usercss = ''; + $siteargs = ''; # Add user-specific code if this is a user and we allow that kind of thing @@ -835,8 +835,7 @@ class SkinTemplate extends Skin { # If we use the site's dynamic CSS, throw that in, too if ( $wgUseSiteCss ) { - $sitecss = ''; - if($wgContLang->isRTL()) $s .= '@import "' . $wgStylePath . '/' . $this->stylename . '/rtl.css";' . "\n"; + 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"; } -- 2.20.1