summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-06-14 10:48:56 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-06-14 10:48:56 +0200
commitaddcda9325b74a2c4462b1c5581aaff993bf35b6 (patch)
tree5241fe3c092d5f08e9ad603b62f0e5d668f109d4 /lib/private
parent6538302daaf83e5befa778d7a9b580043a6d6e6b (diff)
downloadnextcloud-server-addcda9325b74a2c4462b1c5581aaff993bf35b6.tar.gz
nextcloud-server-addcda9325b74a2c4462b1c5581aaff993bf35b6.zip
add geospatial mime types repair step
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Repair/RepairMimeTypes.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/Repair/RepairMimeTypes.php b/lib/private/Repair/RepairMimeTypes.php
index d60b507e932..c384241b5ff 100644
--- a/lib/private/Repair/RepairMimeTypes.php
+++ b/lib/private/Repair/RepairMimeTypes.php
@@ -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');
+ }
}
}