Commit 6b904168 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

add php preview backend

parent 7408ab66
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment