diff options
Diffstat (limited to 'includes/resourceloader/ResourceLoaderSpecialCharacterDataModule.php')
-rw-r--r-- | includes/resourceloader/ResourceLoaderSpecialCharacterDataModule.php | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/includes/resourceloader/ResourceLoaderSpecialCharacterDataModule.php b/includes/resourceloader/ResourceLoaderSpecialCharacterDataModule.php index 5c917091..8170cb1c 100644 --- a/includes/resourceloader/ResourceLoaderSpecialCharacterDataModule.php +++ b/includes/resourceloader/ResourceLoaderSpecialCharacterDataModule.php @@ -35,7 +35,8 @@ class ResourceLoaderSpecialCharacterDataModule extends ResourceLoaderModule { * @return array */ protected function getData() { - return json_decode( file_get_contents( $this->path ) ); + global $IP; + return json_decode( file_get_contents( "$IP/{$this->path}" ) ); } /** @@ -53,25 +54,17 @@ class ResourceLoaderSpecialCharacterDataModule extends ResourceLoaderModule { } /** - * @param ResourceLoaderContext $context - * @return int UNIX timestamp + * @return bool */ - public function getModifiedTime( ResourceLoaderContext $context ) { - return static::safeFilemtime( $this->path ); + public function enableModuleContentVersion() { + return true; } /** * @param ResourceLoaderContext $context - * @return string Hash - */ - public function getModifiedHash( ResourceLoaderContext $context ) { - return md5( serialize( $this->getData() ) ); - } - - /** * @return array */ - public function getDependencies() { + public function getDependencies( ResourceLoaderContext $context = null ) { return array( 'mediawiki.language' ); } |