summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/public.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-01-17 14:21:15 +0100
committerVincent Petry <pvince81@owncloud.com>2014-01-17 14:22:05 +0100
commitf4c198b907f3cbd59555a72693c48123736b7cbb (patch)
treefcad5dd60684dacee61c95dae7458162361e358f /apps/files_sharing/public.php
parent16033c81235e76af2900fdc8fd9340546301d45c (diff)
downloadnextcloud-server-f4c198b907f3cbd59555a72693c48123736b7cbb.tar.gz
nextcloud-server-f4c198b907f3cbd59555a72693c48123736b7cbb.zip
Fixed isPreviewAvailable warnings in log
isPreviewAvailable wasn't always set as the files formatting code is slightly different than the one from the files app. Fixes #6423
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r--apps/files_sharing/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index ef4345da20e..d050efd5b32 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -189,8 +189,8 @@ if (isset($path)) {
} else {
$i['extension'] = '';
}
- $i['isPreviewAvailable'] = \OC::$server->getPreviewManager()->isMimeSupported($i['mimetype']);
}
+ $i['isPreviewAvailable'] = \OC::$server->getPreviewManager()->isMimeSupported($i['mimetype']);
$i['directory'] = $getPath;
$i['permissions'] = OCP\PERMISSION_READ;
$i['icon'] = determineIcon($i, $basePath, $token);