Update kml.php

This commit is contained in:
Peter Buchegger 2022-02-10 01:04:22 +01:00 committed by GitHub
parent 79da5b329e
commit 42b7e3f1dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}