diff options
Diffstat (limited to 'includes/resourceloader/ResourceLoaderUserOptionsModule.php')
-rw-r--r-- | includes/resourceloader/ResourceLoaderUserOptionsModule.php | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/includes/resourceloader/ResourceLoaderUserOptionsModule.php b/includes/resourceloader/ResourceLoaderUserOptionsModule.php index 84c1906d..0847109c 100644 --- a/includes/resourceloader/ResourceLoaderUserOptionsModule.php +++ b/includes/resourceloader/ResourceLoaderUserOptionsModule.php @@ -27,34 +27,23 @@ */ class ResourceLoaderUserOptionsModule extends ResourceLoaderModule { - /* Protected Members */ - - protected $modifiedTime = array(); - protected $origin = self::ORIGIN_CORE_INDIVIDUAL; protected $targets = array( 'desktop', 'mobile' ); - /* Methods */ - /** + * @param ResourceLoaderContext $context * @return array List of module names as strings */ - public function getDependencies() { + public function getDependencies( ResourceLoaderContext $context = null ) { return array( 'user.defaults' ); } /** - * @param ResourceLoaderContext $context - * @return int + * @return bool */ - public function getModifiedTime( ResourceLoaderContext $context ) { - $hash = $context->getHash(); - if ( !isset( $this->modifiedTime[$hash] ) ) { - $this->modifiedTime[$hash] = wfTimestamp( TS_UNIX, $context->getUserObj()->getTouched() ); - } - - return $this->modifiedTime[$hash]; + public function enableModuleContentVersion() { + return true; } /** |