Signed-off-by: Joas Schilling <coding@schilljs.com>tags/v14.0.0beta1
@@ -162,6 +162,19 @@ class RepairMimeTypes implements IRepairStep { | |||
return $this->updateMimetypes($updatedMimetypes); | |||
} | |||
private function introduceVisioTypes() { | |||
$updatedMimetypes = [ | |||
'vsdm' => 'application/vnd.visio', | |||
'vsdx' => 'application/vnd.visio', | |||
'vssm' => 'application/vnd.visio', | |||
'vssx' => 'application/vnd.visio', | |||
'vstm' => 'application/vnd.visio', | |||
'vstx' => 'application/vnd.visio', | |||
]; | |||
return $this->updateMimetypes($updatedMimetypes); | |||
} | |||
/** | |||
* Fix mime types | |||
*/ | |||
@@ -191,5 +204,9 @@ class RepairMimeTypes implements IRepairStep { | |||
if (version_compare($ocVersionFromBeforeUpdate, '13.0.0.6', '<') && $this->introduceStreamingTypes()) { | |||
$out->info('Fixed streaming mime types'); | |||
} | |||
if (version_compare($ocVersionFromBeforeUpdate, '14.0.0.8', '<') && $this->introduceVisioTypes()) { | |||
$out->info('Fixed visio mime types'); | |||
} | |||
} | |||
} |
@@ -40,6 +40,12 @@ | |||
"application/vnd.ms-powerpoint.presentation.macroEnabled.12": "x-office/presentation", | |||
"application/vnd.ms-powerpoint.slideshow.macroEnabled.12": "x-office/presentation", | |||
"application/vnd.ms-powerpoint.template.macroEnabled.12": "x-office/presentation", | |||
"application/vnd.ms-visio.drawing.macroEnabled.12": "application/vnd.visio", | |||
"application/vnd.ms-visio.drawing": "application/vnd.visio", | |||
"application/vnd.ms-visio.stencil.macroEnabled.12": "application/vnd.visio", | |||
"application/vnd.ms-visio.stencil": "application/vnd.visio", | |||
"application/vnd.ms-visio.template.macroEnabled.12": "application/vnd.visio", | |||
"application/vnd.ms-visio.template": "application/vnd.visio", | |||
"application/vnd.ms-word.document.macroEnabled.12": "x-office/document", | |||
"application/vnd.ms-word.template.macroEnabled.12": "x-office/document", | |||
"application/vnd.oasis.opendocument.presentation": "x-office/presentation", |
@@ -176,6 +176,12 @@ | |||
"vcf": ["text/vcard"], | |||
"vob": ["video/dvd"], | |||
"vsd": ["application/vnd.visio"], | |||
"vsdm": ["application/vnd.ms-visio.drawing.macroEnabled.12"], | |||
"vsdx": ["application/vnd.ms-visio.drawing"], | |||
"vssm": ["application/vnd.ms-visio.stencil.macroEnabled.12"], | |||
"vssx": ["application/vnd.ms-visio.stencil"], | |||
"vstm": ["application/vnd.ms-visio.template.macroEnabled.12"], | |||
"vstx": ["application/vnd.ms-visio.template"], | |||
"wav": ["audio/wav"], | |||
"webm": ["video/webm"], | |||
"webp": ["image/webp"], |
@@ -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, 7); | |||
$OC_Version = array(14, 0, 0, 8); | |||
// The human readable string | |||
$OC_VersionString = '14.0.0 alpha'; |