From f4c198b907f3cbd59555a72693c48123736b7cbb Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 17 Jan 2014 14:21:15 +0100 Subject: [PATCH] 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 --- apps/files/templates/part.list.php | 2 +- apps/files_sharing/public.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 2f630e1f01..f4fb96a7a7 100644 --- a/apps/files/templates/part.list.php +++ b/apps/files/templates/part.list.php @@ -18,7 +18,7 @@ $totalsize = 0; ?> data-size="" data-etag="" data-permissions=""> - + 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);