Remove useless file writing
这个提交包含在:
父节点
c61bb81e30
当前提交
023e6f151f
共有 1 个文件被更改,包括 3 次插入 和 12 次删除
|
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用