Parcourir la source

Fix KML not force downloading

Alan Lam il y a 8 ans
Parent
commit
3984b10b25
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      controllers/project_kml.php

+ 1 - 1
controllers/project_kml.php

@@ -9,7 +9,7 @@ $slug = Util::slug($project->name);
 $locations = $project->getLocations();
 
 header("Content-Type: text/xml; charset=utf-8");
-//header("Content-Disposition: attachment; filename={$slug}-export.kml");
+header("Content-Disposition: attachment; filename={$slug}-export.kml");
 
 $xml = simplexml_load_file(ROOT_DIR . "/files/empty.kml");