aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/ProviderV1Adapter.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/ProviderV1Adapter.php')
-rw-r--r--lib/private/Preview/ProviderV1Adapter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/ProviderV1Adapter.php b/lib/private/Preview/ProviderV1Adapter.php
index f09b0f47583..6f5242a5204 100644
--- a/lib/private/Preview/ProviderV1Adapter.php
+++ b/lib/private/Preview/ProviderV1Adapter.php
@@ -50,7 +50,7 @@ class ProviderV1Adapter implements IProviderV2 {
}
public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
- list($view, $path) = $this->getViewAndPath($file);
+ [$view, $path] = $this->getViewAndPath($file);
$thumbnail = $this->providerV1->getThumbnail($path, $maxX, $maxY, false, $view);
return $thumbnail === false ? null: $thumbnail;
}