some fix
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user