Jelajahi Sumber

Fix KML not force downloading

Alan Lam 8 tahun lalu
induk
melakukan
3984b10b25
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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");