some fix
This commit is contained in:
@ -50,11 +50,14 @@ class ModuleShopController extends AdminController
|
||||
$zip = new ZipArchive;
|
||||
$res = $zip->open(ROOT_DIR . $moduleShopForm->getItem('path_to_archive'));
|
||||
if ($res === TRUE) {
|
||||
if (!is_dir(RESOURCES_DIR . '/tmp/ms/')) {
|
||||
mkdir(RESOURCES_DIR . '/tmp/ms/');
|
||||
}
|
||||
$tmpModuleShopDirFull = RESOURCES_DIR . '/tmp/ms/' . $tmpThemeDir . "/";
|
||||
$zip->extractTo($tmpModuleShopDirFull);
|
||||
$zip->close();
|
||||
|
||||
if (file_exists($tmpModuleShopDirFull . "/app/manifest.json")){
|
||||
if (file_exists($tmpModuleShopDirFull . "app/manifest.json")){
|
||||
$moduleInfo = $this->moduleShopService->getModuleInfo($tmpModuleShopDirFull . "app");
|
||||
$moduleShopForm->load($moduleInfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user