Obviously no need for a foreach loop here. (Follow-up r80790)
authorKrinkle <krinkle@users.mediawiki.org>
Sun, 23 Jan 2011 02:22:27 +0000 (02:22 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sun, 23 Jan 2011 02:22:27 +0000 (02:22 +0000)
includes/resourceloader/ResourceLoaderStartUpModule.php

index de99cf3..9015177 100644 (file)
@@ -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();