Skip to content

Commit b0970f8

Browse files
committed
Update repair step apply new opendocument template mimes
Signed-off-by: Julius Härtl <[email protected]>
1 parent 3560aa8 commit b0970f8

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

lib/private/Repair/RepairMimeTypes.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,17 @@ private function introduceComicbookTypes() {
191191
return $this->updateMimetypes($updatedMimetypes);
192192
}
193193

194+
private function introduceOpenDocumentTemplates() {
195+
$updatedMimetypes = [
196+
'ott' => 'application/vnd.oasis.opendocument.text-template',
197+
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
198+
'otp' => 'application/vnd.oasis.opendocument.presentation-template',
199+
'otg' => 'application/vnd.oasis.opendocument.graphics-template',
200+
];
201+
202+
return $this->updateMimetypes($updatedMimetypes);
203+
}
204+
194205
/**
195206
* Fix mime types
196207
*/
@@ -227,5 +238,9 @@ public function run(IOutput $out) {
227238
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.10', '<') && $this->introduceComicbookTypes()) {
228239
$out->info('Fixed comicbook mime types');
229240
}
241+
242+
if (version_compare($ocVersionFromBeforeUpdate, '20.0.0.5', '<') && $this->introduceOpenDocumentTemplates()) {
243+
$out->info('Fixed OpenDocument template mime types');
244+
}
230245
}
231246
}

version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
3030
// when updating major/minor version number.
3131

32-
$OC_Version = [20, 0, 0, 4];
32+
$OC_Version = [20, 0, 0, 5];
3333

3434
// The human readable string
3535
$OC_VersionString = '20.0.0 Beta 2';

0 commit comments

Comments
 (0)