From: Roan Kattouw Date: Wed, 12 Jan 2011 20:58:36 +0000 (+0000) Subject: Fix issue with missing keys in $wgFileExtensions caused by an array_diff() somewhere... X-Git-Tag: 1.31.0-rc.0~32589 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=3a241d498aeb8397fae1429672d07373e7857427;p=lhc%2Fweb%2Fwiklou.git 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 --- 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() ) {