add php preview backend
This commit is contained in:
parent
7408ab660a
commit
6b90416891
|
@ -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');
|
Loading…
Reference in New Issue