This commit is contained in:
Билай Станислав 2024-12-17 12:41:30 +03:00
parent 2e4fc0496b
commit e6455165b3
2 changed files with 2 additions and 3 deletions

View File

@ -12,7 +12,6 @@ use kernel\helpers\Files;
use kernel\helpers\RESTClient; use kernel\helpers\RESTClient;
use kernel\helpers\SMTP; use kernel\helpers\SMTP;
use kernel\Mailing; use kernel\Mailing;
use kernel\modules\module_shop_client\services\ModuleShopClientService;
use kernel\Request; use kernel\Request;
use kernel\services\KernelService; use kernel\services\KernelService;
use kernel\services\ModuleService; use kernel\services\ModuleService;

View File

@ -59,9 +59,9 @@ class KernelService
Debug::dd($files); Debug::dd($files);
$zip = new ZipArchive; $zip = new ZipArchive;
if (file_exists($path)) { if (file_exists(ROOT_DIR . $path)) {
$tmpKernelDir = md5(time()); $tmpKernelDir = md5(time());
$res = $zip->open($path); $res = $zip->open(ROOT_DIR . $path);
if ($res === TRUE) { if ($res === TRUE) {
$tmpKernelDirFull = RESOURCES_DIR . '/tmp/kernel/' . $tmpKernelDir . "/"; $tmpKernelDirFull = RESOURCES_DIR . '/tmp/kernel/' . $tmpKernelDir . "/";
$zip->extractTo($tmpKernelDirFull); $zip->extractTo($tmpKernelDirFull);