From 3a241d498aeb8397fae1429672d07373e7857427 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 12 Jan 2011 20:58:36 +0000 Subject: [PATCH] Fix issue with missing keys in $wgFileExtensions caused by an array_diff() somewhere. Doesn't seem needed on any of the other vars at first glance --- includes/resourceloader/ResourceLoaderStartUpModule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/resourceloader/ResourceLoaderStartUpModule.php b/includes/resourceloader/ResourceLoaderStartUpModule.php index f9190c2856..3f1f235527 100644 --- a/includes/resourceloader/ResourceLoaderStartUpModule.php +++ b/includes/resourceloader/ResourceLoaderStartUpModule.php @@ -75,7 +75,7 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule { 'wgFormattedNamespaces' => $wgContLang->getFormattedNamespaces(), 'wgNamespaceIds' => $wgContLang->getNamespaceIds(), 'wgSiteName' => $wgSitename, - 'wgFileExtensions' => $wgFileExtensions, + 'wgFileExtensions' => array_values( $wgFileExtensions ), 'wgDBname' => $wgDBname, ); if ( $wgContLang->hasVariants() ) { -- 2.20.1