add geospatial mime types repair step

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2017-06-14 10:48:56 +02:00
parent 6538302daa
commit addcda9325
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 12 additions and 0 deletions

View File

@ -129,6 +129,14 @@ class RepairMimeTypes implements IRepairStep {
$this->updateMimetypes($updatedMimetypes);
}
private function introduceLocationTypes() {
$updatedMimetypes = [
'gpx' => 'application/gpx+xml'
];
$this->updateMimetypes($updatedMimetypes);
}
/**
* Fix mime types
*/
@ -146,5 +154,9 @@ class RepairMimeTypes implements IRepairStep {
if (version_compare($ocVersionFromBeforeUpdate, '12.0.0.13', '<') && $this->introduceWindowsProgramTypes()) {
$out->info('Fixed windows program mime types');
}
if (version_compare($ocVersionFromBeforeUpdate, '13.0.0.0', '<') && $this->introduceLocationTypes()) {
$out->info('Fixed geospatial mime types');
}
}
}