summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2015-05-27 14:11:33 +0200
committerGeorg Ehrke <developer@georgehrke.com>2015-05-27 14:11:33 +0200
commitbb676f27990c45e377ce00dcdbe59919c0b73f60 (patch)
tree1da1850a9f05461233218b32b21346abbb0519fa /lib
parent3de945d13da0016cd8c602867ff18a33c2534418 (diff)
downloadnextcloud-server-bb676f27990c45e377ce00dcdbe59919c0b73f60.tar.gz
nextcloud-server-bb676f27990c45e377ce00dcdbe59919c0b73f60.zip
show txt preview when file contains text
Diffstat (limited to 'lib')
-rw-r--r--lib/private/preview/txt.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview/txt.php b/lib/private/preview/txt.php
index ea817388f86..684438684fb 100644
--- a/lib/private/preview/txt.php
+++ b/lib/private/preview/txt.php
@@ -38,7 +38,7 @@ class TXT extends Provider {
* {@inheritDoc}
*/
public function isAvailable(\OCP\Files\FileInfo $file) {
- return $file->getSize() > 5;
+ return $file->getSize() > 0;
}
/**