* @return array
*/
protected function getData() {
- return json_decode( file_get_contents( $this->path ) );
+ global $IP;
+ return json_decode( file_get_contents( "$IP/{$this->path}" ) );
}
/**
* @return array
*/
public function getDependencies() {
- return array( 'mediawiki.language.init' );
+ return array( 'mediawiki.language' );
}
/**