From 7784dfa80d4c529c280596dc41abb555cd9c48f3 Mon Sep 17 00:00:00 2001 From: liyuchun <563917701@qq.com> Date: Thu, 7 Jul 2022 05:56:33 +0000 Subject: [PATCH] * Finish task #59434. --- module/repo/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/repo/control.php b/module/repo/control.php index 05038e167f..1d20fb479a 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -1324,7 +1324,7 @@ class repo extends control $zip = new pclzip($fileName); if($zip->create($repo->path, PCLZIP_OPT_REMOVE_PATH, $repo->path) === 0) return print(js::alert($zip->errorInfo()) . js::close()); - $this->locate(DS . 'data' . DS . 'repo' . DS . $repo->name . '.zip'); + $url = DS . 'data' . DS . 'repo' . DS . $repo->name . '.zip'; } else { @@ -1342,7 +1342,7 @@ class repo extends control $zip = new pclzip($fileName); if($zip->create($repoDir, PCLZIP_OPT_REMOVE_PATH, $repoDir) === 0) return print(js::alert($zip->errorInfo()) . js::close()); - $this->locate(DS . 'data' . DS . 'repo' . DS . $repo->name . '.zip'); + $url = DS . 'data' . DS . 'repo' . DS . $repo->name . '.zip'; } } }