Merge pull request #10125 from nextcloud/feature/9496/comic_mimetypes
Add comicbook mimetypes
This commit is contained in:
commit
af20f1dd4b
|
@ -175,6 +175,19 @@ class RepairMimeTypes implements IRepairStep {
|
||||||
return $this->updateMimetypes($updatedMimetypes);
|
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
|
* Fix mime types
|
||||||
*/
|
*/
|
||||||
|
@ -208,5 +221,9 @@ class RepairMimeTypes implements IRepairStep {
|
||||||
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.8', '<') && $this->introduceVisioTypes()) {
|
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.8', '<') && $this->introduceVisioTypes()) {
|
||||||
$out->info('Fixed visio mime types');
|
$out->info('Fixed visio mime types');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.10', '<') && $this->introduceComicbookTypes()) {
|
||||||
|
$out->info('Fixed comicbook mime types');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,12 +21,12 @@
|
||||||
"bmp": ["image/bmp"],
|
"bmp": ["image/bmp"],
|
||||||
"bpg": ["image/bpg"],
|
"bpg": ["image/bpg"],
|
||||||
"bz2": ["application/x-bzip2"],
|
"bz2": ["application/x-bzip2"],
|
||||||
"cb7": ["application/x-cbr"],
|
"cb7": ["application/comicbook+7z"],
|
||||||
"cba": ["application/x-cbr"],
|
"cba": ["application/comicbook+ace"],
|
||||||
"cbr": ["application/x-cbr"],
|
"cbr": ["application/comicbook+rar"],
|
||||||
"cbt": ["application/x-cbr"],
|
"cbt": ["application/comicbook+tar"],
|
||||||
"cbtc": ["application/x-cbr"],
|
"cbtc": ["application/comicbook+truecrypt"],
|
||||||
"cbz": ["application/x-cbr"],
|
"cbz": ["application/comicbook+zip"],
|
||||||
"cc": ["text/x-c"],
|
"cc": ["text/x-c"],
|
||||||
"cdr": ["application/coreldraw"],
|
"cdr": ["application/coreldraw"],
|
||||||
"class": ["application/java"],
|
"class": ["application/java"],
|
||||||
|
|
|
@ -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 = array(14, 0, 0, 9);
|
$OC_Version = array(14, 0, 0, 10);
|
||||||
|
|
||||||
// The human readable string
|
// The human readable string
|
||||||
$OC_VersionString = '14.0.0 alpha';
|
$OC_VersionString = '14.0.0 alpha';
|
||||||
|
|
Loading…
Reference in New Issue