aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Repair
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-12-15 15:19:40 +0100
committerGitHub <noreply@github.com>2020-12-15 15:19:40 +0100
commit2bedfbd4b039de6a9155eb2e7f9160d24236ec0f (patch)
tree90872ddd32dcf3f7a59ee983d9aaf73e4e705338 /lib/private/Repair
parentd37034f1612279b07c78284771ac73fbd5a2a407 (diff)
parent794cc3d8032f87dcb8a4c905d60fdea8e14e8587 (diff)
downloadnextcloud-server-2bedfbd4b039de6a9155eb2e7f9160d24236ec0f.tar.gz
nextcloud-server-2bedfbd4b039de6a9155eb2e7f9160d24236ec0f.zip
Merge pull request #24488 from zzkt/patch-1
Diffstat (limited to 'lib/private/Repair')
-rw-r--r--lib/private/Repair/RepairMimeTypes.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/private/Repair/RepairMimeTypes.php b/lib/private/Repair/RepairMimeTypes.php
index c5157f81612..ecf46236483 100644
--- a/lib/private/Repair/RepairMimeTypes.php
+++ b/lib/private/Repair/RepairMimeTypes.php
@@ -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');
+ }
}
}