add php preview backend
This commit is contained in:
parent
7408ab660a
commit
6b90416891
|
@ -48,4 +48,14 @@ class TXT extends Provider{
|
|||
}
|
||||
}
|
||||
|
||||
\OC\Preview::registerProvider('OC\Preview\TXT');
|
||||
\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