aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/PreviewManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/PreviewManager.php')
-rw-r--r--lib/private/PreviewManager.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/PreviewManager.php b/lib/private/PreviewManager.php
index dd6b6ba8ee1..814235f4212 100644
--- a/lib/private/PreviewManager.php
+++ b/lib/private/PreviewManager.php
@@ -113,7 +113,7 @@ class PreviewManager implements IPreview {
* @return void
*/
public function registerProvider($mimeTypeRegex, \Closure $callable): void {
- if (!$this->config->getSystemValue('enable_previews', true)) {
+ if (!$this->config->getSystemValueBool('enable_previews', true)) {
return;
}
@@ -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;
}