From 023e6f151f2d6fed3e0e84a4ffabc7293bb8699c Mon Sep 17 00:00:00 2001 From: phl0 Date: Tue, 9 May 2023 17:36:30 +0200 Subject: [PATCH] Remove useless file writing --- application/controllers/Kmlexport.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/application/controllers/Kmlexport.php b/application/controllers/Kmlexport.php index b106900e..711ebc68 100644 --- a/application/controllers/Kmlexport.php +++ b/application/controllers/Kmlexport.php @@ -90,17 +90,8 @@ class Kmlexport extends CI_Controller { $output .= ""; $output .= ""; - 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; } -} \ No newline at end of file +}