Update repair step apply new opendocument template mimes
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
3560aa80f0
commit
b0970f86f0
|
@ -191,6 +191,17 @@ class RepairMimeTypes implements IRepairStep {
|
||||||
return $this->updateMimetypes($updatedMimetypes);
|
return $this->updateMimetypes($updatedMimetypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function introduceOpenDocumentTemplates() {
|
||||||
|
$updatedMimetypes = [
|
||||||
|
'ott' => 'application/vnd.oasis.opendocument.text-template',
|
||||||
|
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
|
||||||
|
'otp' => 'application/vnd.oasis.opendocument.presentation-template',
|
||||||
|
'otg' => 'application/vnd.oasis.opendocument.graphics-template',
|
||||||
|
];
|
||||||
|
|
||||||
|
return $this->updateMimetypes($updatedMimetypes);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fix mime types
|
* Fix mime types
|
||||||
*/
|
*/
|
||||||
|
@ -227,5 +238,9 @@ class RepairMimeTypes implements IRepairStep {
|
||||||
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.10', '<') && $this->introduceComicbookTypes()) {
|
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.10', '<') && $this->introduceComicbookTypes()) {
|
||||||
$out->info('Fixed comicbook mime types');
|
$out->info('Fixed comicbook mime types');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (version_compare($ocVersionFromBeforeUpdate, '20.0.0.5', '<') && $this->introduceOpenDocumentTemplates()) {
|
||||||
|
$out->info('Fixed OpenDocument template mime types');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
|
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
|
||||||
// when updating major/minor version number.
|
// when updating major/minor version number.
|
||||||
|
|
||||||
$OC_Version = [20, 0, 0, 4];
|
$OC_Version = [20, 0, 0, 5];
|
||||||
|
|
||||||
// The human readable string
|
// The human readable string
|
||||||
$OC_VersionString = '20.0.0 Beta 2';
|
$OC_VersionString = '20.0.0 Beta 2';
|
||||||
|
|
Loading…
Reference in New Issue