add php preview backend

This commit is contained in:
Georg Ehrke 2013-05-29 13:09:38 +02:00
parent 7408ab660a
commit 6b90416891
1 changed files with 11 additions and 1 deletions

View File

@ -49,3 +49,13 @@ class TXT extends Provider{
}
\OC\Preview::registerProvider('OC\Preview\TXT');
class PHP extends TXT {
public function getMimeType() {
return '/application\/x-php/';
}
}
\OC\Preview::registerProvider('OC\Preview\PHP');