Explorar o código

Fix KML not force downloading

Alan Lam %!s(int64=8) %!d(string=hai) anos
pai
achega
3984b10b25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
 $locations = $project->getLocations();
 
 
 header("Content-Type: text/xml; charset=utf-8");
 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");
 $xml = simplexml_load_file(ROOT_DIR . "/files/empty.kml");