diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-12-15 15:19:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 15:19:40 +0100 |
commit | 2bedfbd4b039de6a9155eb2e7f9160d24236ec0f (patch) | |
tree | 90872ddd32dcf3f7a59ee983d9aaf73e4e705338 /lib/private/Repair | |
parent | d37034f1612279b07c78284771ac73fbd5a2a407 (diff) | |
parent | 794cc3d8032f87dcb8a4c905d60fdea8e14e8587 (diff) | |
download | nextcloud-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.php | 13 |
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'); + } } } |