module service fix

This commit is contained in:
Kavalar 2024-10-25 16:36:48 +03:00
parent 42aca3c1c0
commit 8eae977357
3 changed files with 4 additions and 4 deletions

View File

@ -82,11 +82,11 @@ class Files
if(is_dir($include)) {
if ($include->getFilename() === 'app_modules') continue;
$tmpFolder = $folder . '/' . $include->getFilename() . '/';
$tmpFolder = $folder . '/' . $include->getFilename();
$this->recursiveAddFile($zip, $include, $tmpFolder);
}
if (is_file($include)) {
$zip->addFile($include->getPathName(), $folder . $include->getFilename());
$zip->addFile($include->getPathName(), $folder . "/" . $include->getFilename());
}
}
}

View File

@ -1,6 +1,6 @@
{
"name": "Post",
"version": "0.1",
"version": "0.2",
"author": "ITGuild",
"slug": "post",
"description": "Post module",

View File

@ -355,7 +355,7 @@ class ModuleService
}
$fileHelper->pack($tmpModuleDirFull, RESOURCES_DIR . '/tmp/modules/' . $moduleName . '.igm');
$fileHelper->recursiveRemoveDir($tmpModuleDirFull);
//$fileHelper->recursiveRemoveDir($tmpModuleDirFull);
}
/**