Merge pull request #24488 from zzkt/patch-1

pull/24713/head
Julius Härtl 2020-12-15 15:19:40 +07:00 committed by GitHub
commit 2bedfbd4b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

@ -192,6 +192,15 @@ class RepairMimeTypes implements IRepairStep {
return $this->updateMimetypes($updatedMimetypes);
}
private function introduceOrgModeType() {
$updatedMimetypes = [
'org' => 'text/org'
];
return $this->updateMimetypes($updatedMimetypes);
}
/**
* Fix mime types
*/
@ -232,5 +241,9 @@ class RepairMimeTypes implements IRepairStep {
if (version_compare($ocVersionFromBeforeUpdate, '20.0.0.5', '<') && $this->introduceOpenDocumentTemplates()) {
$out->info('Fixed OpenDocument template mime types');
}
if (version_compare($ocVersionFromBeforeUpdate, '21.0.0.7', '<') && $this->introduceOrgModeType()) {
$out->info('Fixed orgmode mime types');
}
}
}

@ -133,6 +133,7 @@
"one": ["application/msonenote"],
"opus": ["audio/ogg"],
"orf": ["image/x-dcraw"],
"org": ["text/org", "text/plain"],
"otf": ["application/font-sfnt"],
"pages": ["application/x-iwork-pages-sffpages"],
"pdf": ["application/pdf"],