summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-09-23 10:26:46 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-09-23 10:26:46 +0200
commitedd38e59481a98c56645a43ca6c9048fe1458d20 (patch)
tree4ef9260a0e267fe6150bd1d11ed5e070a4fbb06c /apps/files/lib
parent03eedb58fc3529d27238959415b0f2904a0695e6 (diff)
downloadnextcloud-server-edd38e59481a98c56645a43ca6c9048fe1458d20.tar.gz
nextcloud-server-edd38e59481a98c56645a43ca6c9048fe1458d20.zip
fix previews in shared folders
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index 08c807d7f7b..1d431df04f1 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -39,8 +39,8 @@ class Helper
}
if($file['isPreviewAvailable']) {
- $relativePath = substr($file['path'], 6);
- return \OC_Helper::previewIcon($relativePath);
+ $pathForPreview = $file['directory'] . '/' . $file['name'];
+ return \OC_Helper::previewIcon($pathForPreview);
}
return \OC_Helper::mimetypeIcon($file['mimetype']);
}