aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/ProviderV1Adapter.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-08-18 13:30:11 +0200
committerJulius Härtl <jus@bitgrid.net>2022-08-24 22:20:32 +0200
commit4baf960c218d9fc14c7827adf774286c45918855 (patch)
treed5761fe2f1783dcbb899f8df72cfd9e7f25b638f /lib/private/Preview/ProviderV1Adapter.php
parentb2d64357370eedf4bf980b9d217e1af9c6e61461 (diff)
downloadnextcloud-server-4baf960c218d9fc14c7827adf774286c45918855.tar.gz
nextcloud-server-4baf960c218d9fc14c7827adf774286c45918855.zip
Save getting the parent node when generating the preview
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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 22db380d30d..5e50db9d8da 100644
--- a/lib/private/Preview/ProviderV1Adapter.php
+++ b/lib/private/Preview/ProviderV1Adapter.php
@@ -55,7 +55,7 @@ class ProviderV1Adapter implements IProviderV2 {
}
private function getViewAndPath(File $file) {
- $view = new View($file->getParent()->getPath());
+ $view = new View(dirname($file->getPath()));
$path = $file->getName();
return [$view, $path];