Merge pull request #2126 from phl0/removeKmlFileWrite

Remove useless file writing
pull/2133/head
Peter Goodhall 2023-05-11 13:32:51 +01:00 zatwierdzone przez GitHub
commit 92f5c1d5d2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 12 usunięć

Wyświetl plik

@ -90,17 +90,8 @@ class Kmlexport extends CI_Controller {
$output .= "</Document>";
$output .= "</kml>";
if (!file_exists('kml')) {
mkdir('kml', 0755, true);
}
if ( ! write_file('kml/qsos.kml', $output)) {
echo 'Unable to write the file. Make sure the folder KML has write permissions.';
}
else {
header("Content-Disposition: attachment; filename=\"qsos.kml\"");
echo $output;
}
header("Content-Disposition: attachment; filename=\"qsos.kml\"");
echo $output;
}
}
}