summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-07-31 11:38:29 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-07-31 11:38:29 +0200
commit4eb2b4e1b087234499f2721bc474fa979a47f1e0 (patch)
treeef5be6c1204bdc0fe11cf1009684496f4ab426f4 /apps
parentc1562057e813ff1dcb0e28b9616c528975fc3b5d (diff)
parent4a9b0d5465927b0b4cc856cebbc724264ffdd404 (diff)
downloadnextcloud-server-4eb2b4e1b087234499f2721bc474fa979a47f1e0.tar.gz
nextcloud-server-4eb2b4e1b087234499f2721bc474fa979a47f1e0.zip
Merge pull request #10051 from owncloud/preview-empty-text
Use svg mimeicons for empty text files
Diffstat (limited to 'apps')
-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();