diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-17 13:33:47 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-17 13:33:47 +0200 |
commit | 9b420e8660404de27e3af629bfca188ae90cf7bd (patch) | |
tree | d040fb55ca6616aec04c7c4d61081119db4169b2 /apps/files_sharing/public.php | |
parent | b9e943f5d52d1bf888233fdc2288477322591c43 (diff) | |
download | nextcloud-server-9b420e8660404de27e3af629bfca188ae90cf7bd.tar.gz nextcloud-server-9b420e8660404de27e3af629bfca188ae90cf7bd.zip |
use \OC::$server->getPreviewManager() instead of \OCP\Preview
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r-- | apps/files_sharing/public.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 6d3a07a9d0b..8d474e87b48 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -187,7 +187,7 @@ if (isset($path)) { } else { $i['extension'] = ''; } - $i['isPreviewAvailable'] = \OCP\Preview::isMimeSupported($i['mimetype']); + $i['isPreviewAvailable'] = \OC::$server->getPreviewManager()->isMimeSupported($i['mimetype']); } $i['directory'] = $getPath; $i['permissions'] = OCP\PERMISSION_READ; |