Skip to content

Instantly share code, notes, and snippets.

@ankita-kumari
Created March 10, 2015 22:32
Show Gist options
  • Save ankita-kumari/4254e114390795d97d18 to your computer and use it in GitHub Desktop.
Save ankita-kumari/4254e114390795d97d18 to your computer and use it in GitHub Desktop.
line 897 throws the error : The variable $localPath is wrong as that is what makes it look for the required file in wrong location.
protected function readStyleFile( $path, $flip, $context = null ) {
$localPath = $this->getLocalPath( $path );
$remotePath = $this->getRemotePath( $path );
if ( !file_exists( $localPath ) ) {
$msg = __METHOD__ . ": style file not found: \"$localPath\"";
wfDebugLog( 'resourceloader', $msg );
throw new MWException( $msg );
}
@ankita-kumari
Copy link
Author

public function getStyleFiles( ResourceLoaderContext $context ) {
return array_merge_recursive(
self::collateFilePathListByOption( $this->styles, 'media', 'all' ),
self::collateFilePathListByOption(
self::tryForKey( $this->skinStyles, $context->getSkin(), 'default' ),
'media',
'all'
)
);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment