summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-05-28 20:48:16 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-05-28 20:48:16 +0200
commit67cef93fddc0d968ec7d3febe7f618450e59bb39 (patch)
treef58c06009ca72e3048e716336b7c9708de6464c6
parentb95ebb76e52c58b7789886c9d4b61442e496f138 (diff)
parentbb676f27990c45e377ce00dcdbe59919c0b73f60 (diff)
downloadnextcloud-server-67cef93fddc0d968ec7d3febe7f618450e59bb39.tar.gz
nextcloud-server-67cef93fddc0d968ec7d3febe7f618450e59bb39.zip
Merge pull request #16578 from owncloud/fix_16556
show txt preview when file contains text
-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;
}
/**