* (bug 21074) Don't call $wgUser->getSkin() in OutputPage::getHeadScripts() since...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 10 Oct 2009 07:54:32 +0000 (07:54 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 10 Oct 2009 07:54:32 +0000 (07:54 +0000)
Patch by Platonides - http://bug-attachment.wikimedia.org/attachment.cgi?id=6656

includes/OutputPage.php

index dc397bf..7879cbb 100644 (file)
@@ -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=" .