From 8eae9773572e21e5783c2cebbe7d9ad863dacbe6 Mon Sep 17 00:00:00 2001 From: Kavalar Date: Fri, 25 Oct 2024 16:36:48 +0300 Subject: [PATCH] module service fix --- kernel/helpers/Files.php | 4 ++-- kernel/modules/post/manifest.json | 2 +- kernel/services/ModuleService.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/helpers/Files.php b/kernel/helpers/Files.php index 4cd710a..d140f2c 100644 --- a/kernel/helpers/Files.php +++ b/kernel/helpers/Files.php @@ -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()); } } } diff --git a/kernel/modules/post/manifest.json b/kernel/modules/post/manifest.json index 2de6805..7ff222b 100644 --- a/kernel/modules/post/manifest.json +++ b/kernel/modules/post/manifest.json @@ -1,6 +1,6 @@ { "name": "Post", - "version": "0.1", + "version": "0.2", "author": "ITGuild", "slug": "post", "description": "Post module", diff --git a/kernel/services/ModuleService.php b/kernel/services/ModuleService.php index 0c5552d..646f449 100644 --- a/kernel/services/ModuleService.php +++ b/kernel/services/ModuleService.php @@ -355,7 +355,7 @@ class ModuleService } $fileHelper->pack($tmpModuleDirFull, RESOURCES_DIR . '/tmp/modules/' . $moduleName . '.igm'); - $fileHelper->recursiveRemoveDir($tmpModuleDirFull); + //$fileHelper->recursiveRemoveDir($tmpModuleDirFull); } /**