diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-07-30 16:29:18 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-07-30 16:31:37 +0200 |
commit | 4a9b0d5465927b0b4cc856cebbc724264ffdd404 (patch) | |
tree | 2203c4dd985bebc76fd92b3237f6f72c3d8f7077 /apps/files/lib | |
parent | 2946a63f6bbcf298a30bb89ed72dbb650bc39def (diff) | |
download | nextcloud-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.php | 4 |
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(); |