diff options
author | Georg Ehrke <georg@ownCloud.com> | 2013-05-29 13:09:38 +0200 |
---|---|---|
committer | Georg Ehrke <georg@ownCloud.com> | 2013-05-29 13:09:38 +0200 |
commit | 6b90416891e9e0943a7b19f29017bf7d8140eb0a (patch) | |
tree | 4a820e3b3025ea25a3ab684538aa8b208e299e90 /lib/preview | |
parent | 7408ab660af2c681ca6abfb15d6230382f35dd7c (diff) | |
download | nextcloud-server-6b90416891e9e0943a7b19f29017bf7d8140eb0a.tar.gz nextcloud-server-6b90416891e9e0943a7b19f29017bf7d8140eb0a.zip |
add php preview backend
Diffstat (limited to 'lib/preview')
-rw-r--r-- | lib/preview/txt.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/preview/txt.php b/lib/preview/txt.php index 5961761aaa4..def6806860b 100644 --- a/lib/preview/txt.php +++ b/lib/preview/txt.php @@ -48,4 +48,14 @@ class TXT extends Provider{ } } -\OC\Preview::registerProvider('OC\Preview\TXT');
\ No newline at end of file +\OC\Preview::registerProvider('OC\Preview\TXT'); + +class PHP extends TXT { + + public function getMimeType() { + return '/application\/x-php/'; + } + +} + +\OC\Preview::registerProvider('OC\Preview\PHP');
\ No newline at end of file |