Update kml.php
This commit is contained in:
parent
79da5b329e
commit
42b7e3f1dc
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "${_SERVER["DOCUMENT_ROOT"]}/includes/bootstrap.php";
|
||||
require "${_SERVER["DOCUMENT_ROOT"]}/../includes/bootstrap.php";
|
||||
|
||||
if (isset($_GET['id']) && isInt($_GET['id'])) {
|
||||
$station = StationRepository::getInstance()->getObjectById($_GET['id']);
|
||||
|
|
@ -57,4 +57,4 @@ if ($station->isExistingObject()) {
|
|||
header('Content-type: application/vnd.google-earth.kml+xml');
|
||||
header('Content-Disposition: attachment; filename="' . htmlspecialchars($lateststation->name) . '-' . $startTimestampString . '-' . $endTimestampString . '.kml"');
|
||||
echo Kml::getInstance()->formatKmlContent($kmlOutput, " ", 4);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue