X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fresourceloader%2FResourceLoaderFileModule.php;h=42bd66a0e80d542f2d01dee78307b6505f568ef8;hb=46130ec4e344ee33d8e6db4f1be8178eb85e3fe1;hp=6ee030e0e830918ec2015b49f816f040094b20e4;hpb=1666a9d10bb007f715278d57b4c911196de19bab;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/resourceloader/ResourceLoaderFileModule.php b/includes/resourceloader/ResourceLoaderFileModule.php index 6ee030e0e8..42bd66a0e8 100644 --- a/includes/resourceloader/ResourceLoaderFileModule.php +++ b/includes/resourceloader/ResourceLoaderFileModule.php @@ -460,9 +460,6 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { throw new MWException( __METHOD__ . ": skip function file not found: \"$localPath\"" ); } $contents = $this->stripBom( file_get_contents( $localPath ) ); - if ( $this->getConfig()->get( 'ResourceLoaderValidateStaticJS' ) ) { - $contents = $this->validateScriptFile( $localPath, $contents ); - } return $contents; } @@ -807,12 +804,6 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { throw new MWException( __METHOD__ . ": script file not found: \"$localPath\"" ); } $contents = $this->stripBom( file_get_contents( $localPath ) ); - if ( $this->getConfig()->get( 'ResourceLoaderValidateStaticJS' ) ) { - // Static files don't really need to be checked as often; unlike - // on-wiki module they shouldn't change unexpectedly without - // admin interference. - $contents = $this->validateScriptFile( $fileName, $contents ); - } $js .= $contents . "\n"; } return $js;