resourceloader: Fix undefined variable in ResourceLoaderFileModule::getSkipFunction
Follows-up 75c08916b0. Looking at the call chain of
validateScriptFile() up to JSTokenzier, the first parameter is the file
name, otherwise "[inline]" is used; so that variable should be $localPath.
Bug: 69214
Change-Id: If7f36449cb352f50ba795a6d306e5d949a3dbd29
This commit is contained in:
parent
93ddbbd998
commit
cc03986ca1
1 changed files with 1 additions and 1 deletions
|
|
@ -479,7 +479,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule {
|
|||
}
|
||||
$contents = file_get_contents( $localPath );
|
||||
if ( $this->getConfig()->get( 'ResourceLoaderValidateStaticJS' ) ) {
|
||||
$contents = $this->validateScriptFile( $fileName, $contents );
|
||||
$contents = $this->validateScriptFile( $localPath, $contents );
|
||||
}
|
||||
return $contents;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue