From e6455165b3e53effe6faa56bf87905930a48b513 Mon Sep 17 00:00:00 2001 From: stasbilay02 Date: Tue, 17 Dec 2024 12:41:30 +0300 Subject: [PATCH] some fix --- .../controllers/ModuleShopClientController.php | 1 - kernel/services/KernelService.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/modules/module_shop_client/controllers/ModuleShopClientController.php b/kernel/modules/module_shop_client/controllers/ModuleShopClientController.php index f2f3f95..d2d9b7e 100644 --- a/kernel/modules/module_shop_client/controllers/ModuleShopClientController.php +++ b/kernel/modules/module_shop_client/controllers/ModuleShopClientController.php @@ -12,7 +12,6 @@ use kernel\helpers\Files; use kernel\helpers\RESTClient; use kernel\helpers\SMTP; use kernel\Mailing; -use kernel\modules\module_shop_client\services\ModuleShopClientService; use kernel\Request; use kernel\services\KernelService; use kernel\services\ModuleService; diff --git a/kernel/services/KernelService.php b/kernel/services/KernelService.php index 45d0d5b..c5c5368 100644 --- a/kernel/services/KernelService.php +++ b/kernel/services/KernelService.php @@ -59,9 +59,9 @@ class KernelService Debug::dd($files); $zip = new ZipArchive; - if (file_exists($path)) { + if (file_exists(ROOT_DIR . $path)) { $tmpKernelDir = md5(time()); - $res = $zip->open($path); + $res = $zip->open(ROOT_DIR . $path); if ($res === TRUE) { $tmpKernelDirFull = RESOURCES_DIR . '/tmp/kernel/' . $tmpKernelDir . "/"; $zip->extractTo($tmpKernelDirFull);