summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
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/lib
parentb9e943f5d52d1bf888233fdc2288477322591c43 (diff)
downloadnextcloud-server-9b420e8660404de27e3af629bfca188ae90cf7bd.tar.gz
nextcloud-server-9b420e8660404de27e3af629bfca188ae90cf7bd.zip
use \OC::$server->getPreviewManager() instead of \OCP\Preview
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index 3c13b8ea6e2..f0d3560b878 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -84,7 +84,7 @@ class Helper
}
}
$i['directory'] = $dir;
- $i['isPreviewAvailable'] = \OCP\Preview::isMimeSupported($i['mimetype']);
+ $i['isPreviewAvailable'] = \OC::$server->getPreviewManager()->isMimeSupported($i['mimetype']);
$i['icon'] = \OCA\files\lib\Helper::determineIcon($i);
$files[] = $i;
}