diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-04-05 17:42:14 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-04-05 17:42:14 +0200 |
commit | 8d5165e8dc40289b5d523523c4140f780b2fe293 (patch) | |
tree | b4d15f2bc67e16c94d7cdfdb893a773b415d2738 /lib/private/PreviewManager.php | |
parent | 426c0341ffff262f58d1b7f031de4f0c53c8bec5 (diff) | |
download | nextcloud-server-8d5165e8dc40289b5d523523c4140f780b2fe293.tar.gz nextcloud-server-8d5165e8dc40289b5d523523c4140f780b2fe293.zip |
Adapt tests to config value typing
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/PreviewManager.php')
-rw-r--r-- | lib/private/PreviewManager.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/PreviewManager.php b/lib/private/PreviewManager.php index 140dfefc93d..814235f4212 100644 --- a/lib/private/PreviewManager.php +++ b/lib/private/PreviewManager.php @@ -128,7 +128,7 @@ class PreviewManager implements IPreview { * Get all providers */ public function getProviders(): array { - if (!$this->config->getSystemValue('enable_previews', true)) { + if (!$this->config->getSystemValueBool('enable_previews', true)) { return []; } @@ -219,7 +219,7 @@ class PreviewManager implements IPreview { * @return boolean */ public function isMimeSupported($mimeType = '*') { - if (!$this->config->getSystemValue('enable_previews', true)) { + if (!$this->config->getSystemValueBool('enable_previews', true)) { return false; } @@ -244,7 +244,7 @@ class PreviewManager implements IPreview { * Check if a preview can be generated for a file */ public function isAvailable(\OCP\Files\FileInfo $file): bool { - if (!$this->config->getSystemValue('enable_previews', true)) { + if (!$this->config->getSystemValueBool('enable_previews', true)) { return false; } |