summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/public.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-21 15:55:59 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-21 15:55:59 +0200
commit224b80f906c1b7cd6338854e58f228eff4ea871c (patch)
tree975007c7e7938484c3c61faad21cbed17ca84440 /apps/files_sharing/public.php
parentd9e8ebabdcd99bade4201d6be82e1841d30c5d65 (diff)
downloadnextcloud-server-224b80f906c1b7cd6338854e58f228eff4ea871c.tar.gz
nextcloud-server-224b80f906c1b7cd6338854e58f228eff4ea871c.zip
move isMimeSupported out of template files
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r--apps/files_sharing/public.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index f050fecd7b5..ec6b4e815f8 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -172,6 +172,7 @@ if (isset($path)) {
} else {
$i['extension'] = '';
}
+ $i['isPreviewAvailable'] = \OCP\Preview::isMimeSupported($i['mimetype']);
}
$i['directory'] = $getPath;
$i['permissions'] = OCP\PERMISSION_READ;