add geospatial mime types repair step
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
6538302daa
commit
addcda9325
|
@ -129,6 +129,14 @@ class RepairMimeTypes implements IRepairStep {
|
||||||
$this->updateMimetypes($updatedMimetypes);
|
$this->updateMimetypes($updatedMimetypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function introduceLocationTypes() {
|
||||||
|
$updatedMimetypes = [
|
||||||
|
'gpx' => 'application/gpx+xml'
|
||||||
|
];
|
||||||
|
|
||||||
|
$this->updateMimetypes($updatedMimetypes);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fix mime types
|
* Fix mime types
|
||||||
*/
|
*/
|
||||||
|
@ -146,5 +154,9 @@ class RepairMimeTypes implements IRepairStep {
|
||||||
if (version_compare($ocVersionFromBeforeUpdate, '12.0.0.13', '<') && $this->introduceWindowsProgramTypes()) {
|
if (version_compare($ocVersionFromBeforeUpdate, '12.0.0.13', '<') && $this->introduceWindowsProgramTypes()) {
|
||||||
$out->info('Fixed windows program mime types');
|
$out->info('Fixed windows program mime types');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (version_compare($ocVersionFromBeforeUpdate, '13.0.0.0', '<') && $this->introduceLocationTypes()) {
|
||||||
|
$out->info('Fixed geospatial mime types');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue