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 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];