From: Krinkle Date: Sun, 23 Jan 2011 02:22:27 +0000 (+0000) Subject: Obviously no need for a foreach loop here. (Follow-up r80790) X-Git-Tag: 1.31.0-rc.0~32412 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=a972a4c2ded48a24717660d9a621737e9bbc18bc;p=lhc%2Fweb%2Fwiklou.git Obviously no need for a foreach loop here. (Follow-up r80790) --- diff --git a/includes/resourceloader/ResourceLoaderStartUpModule.php b/includes/resourceloader/ResourceLoaderStartUpModule.php index de99cf3760..9015177e9e 100644 --- a/includes/resourceloader/ResourceLoaderStartUpModule.php +++ b/includes/resourceloader/ResourceLoaderStartUpModule.php @@ -49,11 +49,6 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule { implode( "\t", $digitTransTable ), ); $mainPage = Title::newMainPage(); - // Available skins by code and with display name - $availableSkins = array(); - foreach ( Skin::getSkinNames() as $skinName => $skinDisplayName ) { - $availableSkins[$skinName] = $skinDisplayName; - } // Build list of variables $vars = array( @@ -85,7 +80,7 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule { // This sucks, it is only needed on Special:Upload, but I could // not find a way to add vars only for a certain module 'wgFileCanRotate' => BitmapHandler::canRotate(), - 'wgAvailableSkins' => $availableSkins, + 'wgAvailableSkins' => Skin::getSkinNames(), ); if ( $wgContLang->hasVariants() ) { $vars['wgUserVariant'] = $wgContLang->getPreferredVariant();