summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-30 16:29:18 +0200
committerRobin Appelman <icewind@owncloud.com>2014-07-30 16:31:37 +0200
commit4a9b0d5465927b0b4cc856cebbc724264ffdd404 (patch)
tree2203c4dd985bebc76fd92b3237f6f72c3d8f7077 /apps/files/lib
parent2946a63f6bbcf298a30bb89ed72dbb650bc39def (diff)
downloadnextcloud-server-4a9b0d5465927b0b4cc856cebbc724264ffdd404.tar.gz
nextcloud-server-4a9b0d5465927b0b4cc856cebbc724264ffdd404.zip
Use svg mimeicons for empty text files
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index be0992b1985..50b4e8338a8 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -31,7 +31,7 @@ class Helper
/**
* Determine icon for a given file
*
- * @param \OC\Files\FileInfo $file file info
+ * @param \OCP\Files\FileInfo $file file info
* @return string icon URL
*/
public static function determineIcon($file) {
@@ -111,7 +111,7 @@ class Helper
$entry['mtime'] = $i['mtime'] * 1000;
// only pick out the needed attributes
$entry['icon'] = \OCA\Files\Helper::determineIcon($i);
- if (\OC::$server->getPreviewManager()->isMimeSupported($i['mimetype'])) {
+ if (\OC::$server->getPreviewManager()->isAvailable($i)) {
$entry['isPreviewAvailable'] = true;
}
$entry['name'] = $i->getName();