Add repair step
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
489103eede
commit
0fe115a536
2 changed files with 18 additions and 1 deletions
|
@ -175,6 +175,19 @@ class RepairMimeTypes implements IRepairStep {
|
|||
return $this->updateMimetypes($updatedMimetypes);
|
||||
}
|
||||
|
||||
private function introduceComicbookTypes() {
|
||||
$updatedMimetypes = [
|
||||
'cb7' => 'application/comicbook+7z',
|
||||
'cba' => 'application/comicbook+ace',
|
||||
'cbr' => 'application/comicbook+rar',
|
||||
'cbt' => 'application/comicbook+tar',
|
||||
'cbtc' => 'application/comicbook+truecrypt',
|
||||
'cbz' => 'application/comicbook+zip',
|
||||
];
|
||||
|
||||
return $this->updateMimetypes($updatedMimetypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fix mime types
|
||||
*/
|
||||
|
@ -208,5 +221,9 @@ class RepairMimeTypes implements IRepairStep {
|
|||
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.8', '<') && $this->introduceVisioTypes()) {
|
||||
$out->info('Fixed visio mime types');
|
||||
}
|
||||
|
||||
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.10', '<') && $this->introduceComicbookTypes()) {
|
||||
$out->info('Fixed comicbook mime types');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
|
||||
// when updating major/minor version number.
|
||||
|
||||
$OC_Version = array(14, 0, 0, 9);
|
||||
$OC_Version = array(14, 0, 0, 10);
|
||||
|
||||
// The human readable string
|
||||
$OC_VersionString = '14.0.0 alpha';
|
||||
|
|
Loading…
Reference in a new issue