From: Tom Gilder Date: Sun, 16 Jan 2005 13:21:51 +0000 (+0000) Subject: Fix IE freezing rendering whilst waiting for CSS with MonoBook (bug 624) (take 2) X-Git-Tag: 1.5.0alpha1~919 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=ee2e8324902911c86a99c78ad3aff5d498cae763;p=lhc%2Fweb%2Fwiklou.git Fix IE freezing rendering whilst waiting for CSS with MonoBook (bug 624) (take 2) --- 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"; }