From: Alexandre Emsenhuber Date: Sat, 10 Oct 2009 07:54:32 +0000 (+0000) Subject: * (bug 21074) Don't call $wgUser->getSkin() in OutputPage::getHeadScripts() since... X-Git-Tag: 1.31.0-rc.0~39317 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=1366be3cc891dbc3f547a01a74126a9ff5ed22e9;p=lhc%2Fweb%2Fwiklou.git * (bug 21074) Don't call $wgUser->getSkin() in OutputPage::getHeadScripts() since it's already passed as parameter Patch by Platonides - http://bug-attachment.wikimedia.org/attachment.cgi?id=6656 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index dc397bf8a0..7879cbbb4e 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1807,7 +1807,6 @@ class OutputPage { //add site JS if enabled: if( $wgUseSiteJs ) { - $sk = $wgUser->getSkin(); $jsCache = $wgUser->isLoggedIn() ? '&smaxage=0' : ''; $this->addScriptFile( Skin::makeUrl( '-', "action=raw$jsCache&gen=js&useskin=" .