Index: trunk/phase3/includes/resourceloader/ResourceLoaderStartUpModule.php |
— | — | @@ -49,11 +49,6 @@ |
50 | 50 | implode( "\t", $digitTransTable ), |
51 | 51 | ); |
52 | 52 | $mainPage = Title::newMainPage(); |
53 | | - // Available skins by code and with display name |
54 | | - $availableSkins = array(); |
55 | | - foreach ( Skin::getSkinNames() as $skinName => $skinDisplayName ) { |
56 | | - $availableSkins[$skinName] = $skinDisplayName; |
57 | | - } |
58 | 53 | |
59 | 54 | // Build list of variables |
60 | 55 | $vars = array( |
— | — | @@ -85,7 +80,7 @@ |
86 | 81 | // This sucks, it is only needed on Special:Upload, but I could |
87 | 82 | // not find a way to add vars only for a certain module |
88 | 83 | 'wgFileCanRotate' => BitmapHandler::canRotate(), |
89 | | - 'wgAvailableSkins' => $availableSkins, |
| 84 | + 'wgAvailableSkins' => Skin::getSkinNames(), |
90 | 85 | ); |
91 | 86 | if ( $wgContLang->hasVariants() ) { |
92 | 87 | $vars['wgUserVariant'] = $wgContLang->getPreferredVariant(); |