aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/Generator.php
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2021-04-12 22:53:34 +0200
committerJ0WI <J0WI@users.noreply.github.com>2021-04-12 22:54:50 +0200
commit74a7c2eefc60f6cb08f8a04ed6f785d8177d3a63 (patch)
treeeb25ea2a2f20c866542c45a916f19e6efa5ce116 /lib/private/Preview/Generator.php
parent4be2e1601e80a09aebac57eabb0aaf60e744362e (diff)
downloadnextcloud-server-74a7c2eefc60f6cb08f8a04ed6f785d8177d3a63.tar.gz
nextcloud-server-74a7c2eefc60f6cb08f8a04ed6f785d8177d3a63.zip
Use correct getSystemValue type
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib/private/Preview/Generator.php')
-rw-r--r--lib/private/Preview/Generator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Preview/Generator.php b/lib/private/Preview/Generator.php
index 2be08d1b2c4..e8d60739b1d 100644
--- a/lib/private/Preview/Generator.php
+++ b/lib/private/Preview/Generator.php
@@ -238,8 +238,8 @@ class Generator {
continue;
}
- $maxWidth = (int)$this->config->getSystemValue('preview_max_x', 4096);
- $maxHeight = (int)$this->config->getSystemValue('preview_max_y', 4096);
+ $maxWidth = $this->config->getSystemValueInt('preview_max_x', 4096);
+ $maxHeight = $this->config->getSystemValueInt('preview_max_y', 4096);
$preview = $this->helper->getThumbnail($provider, $file, $maxWidth, $maxHeight);