From f4c198b907f3cbd59555a72693c48123736b7cbb Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 17 Jan 2014 14:21:15 +0100 Subject: 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_sharing/public.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing/public.php') 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); -- cgit v1.2.3