Remove useless file writing

这个提交包含在:
phl0 2023-05-09 17:36:30 +02:00
父节点 c61bb81e30
当前提交 023e6f151f
找不到此签名对应的密钥
GPG 密钥 ID: 48EA1E640798CA9A

查看文件

@ -90,17 +90,8 @@ class Kmlexport extends CI_Controller {
$output .= "</Document>"; $output .= "</Document>";
$output .= "</kml>"; $output .= "</kml>";
if (!file_exists('kml')) { header("Content-Disposition: attachment; filename=\"qsos.kml\"");
mkdir('kml', 0755, true); echo $output;
}
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;
}
} }
} }