diff options
author | Faruk Uzun <farukuzun@collabora.com> | 2016-01-18 01:38:53 +0200 |
---|---|---|
committer | Faruk Uzun <farukuzun@collabora.com> | 2016-02-04 13:48:21 +0200 |
commit | 6ffd8f3e0d325f22667d4739eee037a07b38d50c (patch) | |
tree | 6a7198922d64fa2443845bc7f948bbdb93cf71f8 /lib | |
parent | cd16ba5cb3bf9333b0ecacab4bf152c1b692ed59 (diff) | |
download | nextcloud-server-6ffd8f3e0d325f22667d4739eee037a07b38d50c.tar.gz nextcloud-server-6ffd8f3e0d325f22667d4739eee037a07b38d50c.zip |
Introduce some mimetypes for richdocuments
* application/vnd.lotus-wordpro
* application/vnd.visio
* application/vnd.wordperfect
* application/msonenote
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/repair/repairmimetypes.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/private/repair/repairmimetypes.php b/lib/private/repair/repairmimetypes.php index 692a7120a63..b84f19a3082 100644 --- a/lib/private/repair/repairmimetypes.php +++ b/lib/private/repair/repairmimetypes.php @@ -293,6 +293,17 @@ class RepairMimeTypes extends BasicEmitter implements \OC\RepairStep { self::updateMimetypes($updatedMimetypes); } + private function introduceRichDocumentsMimeTypes() { + $updatedMimetypes = array( + 'lwp' => 'application/vnd.lotus-wordpro', + 'one' => 'application/msonenote', + 'vsd' => 'application/vnd.visio', + 'wpd' => 'application/vnd.wordperfect', + ); + + self::updateMimetypes($updatedMimetypes); + } + /** * Fix mime types */ @@ -356,5 +367,11 @@ class RepairMimeTypes extends BasicEmitter implements \OC\RepairStep { $this->emit('\OC\Repair', 'info', array('Fixed rtf mime type')); } } + + if (version_compare($ocVersionFromBeforeUpdate, '9.0.0.10', '<')) { + if ($this->introduceRichDocumentsMimeTypes()) { + $this->emit('\OC\Repair', 'info', array('Fixed richdocuments additional office mime types')); + } + } } } |