Skip to content
Snippets Groups Projects
Commit 794cc3d8 authored by nik gaffney's avatar nik gaffney
Browse files

repair text/org MIME types


Signed-off-by: default avatarnik gaffney <nik@fo.am>
parent 03433182
No related branches found
No related tags found
No related merge requests found
...@@ -192,6 +192,15 @@ class RepairMimeTypes implements IRepairStep { ...@@ -192,6 +192,15 @@ class RepairMimeTypes implements IRepairStep {
return $this->updateMimetypes($updatedMimetypes); return $this->updateMimetypes($updatedMimetypes);
} }
private function introduceOrgModeType() {
$updatedMimetypes = [
'org' => 'text/org'
];
return $this->updateMimetypes($updatedMimetypes);
}
/** /**
* Fix mime types * Fix mime types
*/ */
...@@ -232,5 +241,9 @@ class RepairMimeTypes implements IRepairStep { ...@@ -232,5 +241,9 @@ class RepairMimeTypes implements IRepairStep {
if (version_compare($ocVersionFromBeforeUpdate, '20.0.0.5', '<') && $this->introduceOpenDocumentTemplates()) { if (version_compare($ocVersionFromBeforeUpdate, '20.0.0.5', '<') && $this->introduceOpenDocumentTemplates()) {
$out->info('Fixed OpenDocument template mime types'); $out->info('Fixed OpenDocument template mime types');
} }
if (version_compare($ocVersionFromBeforeUpdate, '21.0.0.7', '<') && $this->introduceOrgModeType()) {
$out->info('Fixed orgmode mime types');
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment