diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-09-23 10:26:46 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-09-23 10:26:46 +0200 |
commit | edd38e59481a98c56645a43ca6c9048fe1458d20 (patch) | |
tree | 4ef9260a0e267fe6150bd1d11ed5e070a4fbb06c /apps/files/lib | |
parent | 03eedb58fc3529d27238959415b0f2904a0695e6 (diff) | |
download | nextcloud-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.php | 4 |
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']); } |