$fname = 'SkinTemplate::setupUserCss';
wfProfileIn( $fname );
- global $wgRequest, $wgTitle, $wgAllowUserCss, $wgUseSiteCss, $wgContLang;
+ global $wgRequest, $wgTitle, $wgAllowUserCss, $wgUseSiteCss, $wgContLang, $wgSquidMaxage, $wgStylePath;
$sitecss = '';
$usercss = '';
}
}
- # 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";
}
$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) {