Merge "resourceloader: Implement isKnownEmpty for user.options module"
This commit is contained in:
commit
606dced3ff
1 changed files with 8 additions and 0 deletions
|
|
@ -64,6 +64,14 @@ class ResourceLoaderUserOptionsModule extends ResourceLoaderModule {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ResourceLoaderContext $context
|
||||
* @return bool
|
||||
*/
|
||||
public function isKnownEmpty( ResourceLoaderContext $context ) {
|
||||
return !$context->getUserObj()->getOptions( User::GETOPTIONS_EXCLUDE_DEFAULTS );
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue