From: jeroendedauw Date: Sun, 21 Oct 2012 21:06:00 +0000 (+0200) Subject: Remove duplicate files, no point in loading them twice X-Git-Tag: 1.31.0-rc.0~21897^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=11feec4c563cf6c992006510f7fe67050c3ffd7b;p=lhc%2Fweb%2Fwiklou.git Remove duplicate files, no point in loading them twice Change-Id: I52df1ee1cfeda240e8546fa303b65116183d09e7 --- diff --git a/includes/resourceloader/ResourceLoaderFileModule.php b/includes/resourceloader/ResourceLoaderFileModule.php index db4c758ba1..ffa3046711 100644 --- a/includes/resourceloader/ResourceLoaderFileModule.php +++ b/includes/resourceloader/ResourceLoaderFileModule.php @@ -532,7 +532,8 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { if ( $context->getDebug() ) { $files = array_merge( $files, $this->debugScripts ); } - return $files; + + return array_unique( $files ); } /**