summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/index.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_trashbin/index.php
parentd9e8ebabdcd99bade4201d6be82e1841d30c5d65 (diff)
downloadnextcloud-server-224b80f906c1b7cd6338854e58f228eff4ea871c.tar.gz
nextcloud-server-224b80f906c1b7cd6338854e58f228eff4ea871c.zip
move isMimeSupported out of template files
Diffstat (limited to 'apps/files_trashbin/index.php')
-rw-r--r--apps/files_trashbin/index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_trashbin/index.php b/apps/files_trashbin/index.php
index 2dbaefe7a78..6ae238eb8eb 100644
--- a/apps/files_trashbin/index.php
+++ b/apps/files_trashbin/index.php
@@ -64,6 +64,7 @@ foreach ($result as $r) {
$i['directory'] = '';
}
$i['permissions'] = OCP\PERMISSION_READ;
+ $i['isPreviewAvailable'] = \OCP\Preview::isMimeSupported($r['mime']);
$files[] = $i;
}