[Pkg-owncloud-commits] [owncloud] 149/457: show txt preview when file contains text

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:05:52 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit bb676f27990c45e377ce00dcdbe59919c0b73f60
Author: Georg Ehrke <developer at georgehrke.com>
Date:   Wed May 27 14:11:33 2015 +0200

    show txt preview when file contains text
---
 lib/private/preview/txt.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/preview/txt.php b/lib/private/preview/txt.php
index ea81738..6844386 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;
 	}
 
 	/**

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list