summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/public.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-09-17 13:33:47 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-09-17 13:33:47 +0200
commit9b420e8660404de27e3af629bfca188ae90cf7bd (patch)
treed040fb55ca6616aec04c7c4d61081119db4169b2 /apps/files_sharing/public.php
parentb9e943f5d52d1bf888233fdc2288477322591c43 (diff)
downloadnextcloud-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.php2
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;