[DXAtlas export] Fix for some systems when writing temp file
这个提交包含在:
父节点
8a8abcf466
当前提交
f89e877b8e
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -108,7 +108,7 @@ class Dxatlas extends CI_Controller {
|
||||||
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
|
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
|
||||||
$zipFileName = 'dxatlas_gridsquares_'. $band . '.zip';
|
$zipFileName = 'dxatlas_gridsquares_'. $band . '.zip';
|
||||||
// Prepare File
|
// Prepare File
|
||||||
$file = tempnam("tmp", "zip");
|
$file = tempnam(".", "zip");
|
||||||
$zip = new ZipArchive();
|
$zip = new ZipArchive();
|
||||||
$zip->open($file, ZipArchive::OVERWRITE);
|
$zip->open($file, ZipArchive::OVERWRITE);
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用