This commit is contained in:
Jean-Christian Denis 2023-03-18 17:20:48 +01:00
parent 0bd77b1399
commit 88bd4e0db6
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
2 changed files with 9 additions and 9 deletions

View file

@ -70,15 +70,15 @@ class Core
$zip_root_dir = $zip->getRootDir();
if ($zip_root_dir != false) {
$target = dirname($zip_file);
$path = $target . DIRECTORY_SEPARATOR . $zip_root_dir;
$define = $zip_root_dir . '/' . dcModules::MODULE_FILE_DEFINE;
$init = $zip_root_dir . '/' . dcModules::MODULE_FILE_INIT;
$target = dirname($zip_file);
$path = $target . DIRECTORY_SEPARATOR . $zip_root_dir;
$define = $zip_root_dir . '/' . dcModules::MODULE_FILE_DEFINE;
$init = $zip_root_dir . '/' . dcModules::MODULE_FILE_INIT;
} else {
$target = dirname($zip_file) . DIRECTORY_SEPARATOR . preg_replace('/\.([^.]+)$/', '', basename($zip_file));
$path = $target;
$define = dcModules::MODULE_FILE_DEFINE;
$init = dcModules::MODULE_FILE_INIT;
$target = dirname($zip_file) . DIRECTORY_SEPARATOR . preg_replace('/\.([^.]+)$/', '', basename($zip_file));
$path = $target;
$define = dcModules::MODULE_FILE_DEFINE;
$init = dcModules::MODULE_FILE_INIT;
}
if ($zip->isEmpty()) {