repair text/org MIME types

Signed-off-by: nik gaffney <nik@fo.am>
This commit is contained in:
nik gaffney 2020-12-03 14:22:39 +01:00
parent 0343318248
commit 794cc3d803
1 changed files with 13 additions and 0 deletions

View File

@ -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');
}
}
}