summaryrefslogtreecommitdiffstats
path: root/lib/private/GlobalScale
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-04-05 12:50:08 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-04-05 12:50:08 +0200
commit426c0341ffff262f58d1b7f031de4f0c53c8bec5 (patch)
treeac61718627051e469d256685cbe1001b2448d926 /lib/private/GlobalScale
parent5063b76c8ac41199c0a0cc088224d4ab0c1ae9b3 (diff)
downloadnextcloud-server-426c0341ffff262f58d1b7f031de4f0c53c8bec5.tar.gz
nextcloud-server-426c0341ffff262f58d1b7f031de4f0c53c8bec5.zip
Use typed version of IConfig::getSystemValue as much as possible
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/GlobalScale')
-rw-r--r--lib/private/GlobalScale/Config.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/GlobalScale/Config.php b/lib/private/GlobalScale/Config.php
index a5449ade691..66abbfc15db 100644
--- a/lib/private/GlobalScale/Config.php
+++ b/lib/private/GlobalScale/Config.php
@@ -44,8 +44,7 @@ class Config implements \OCP\GlobalScale\IConfig {
* @return bool
*/
public function isGlobalScaleEnabled() {
- $enabled = $this->config->getSystemValue('gs.enabled', false);
- return $enabled !== false;
+ return $this->config->getSystemValueBool('gs.enabled', false);
}
/**
@@ -61,7 +60,7 @@ class Config implements \OCP\GlobalScale\IConfig {
return false;
}
- $enabled = $this->config->getSystemValue('gs.federation', 'internal');
+ $enabled = $this->config->getSystemValueString('gs.federation', 'internal');
return $enabled === 'internal';
}