fix modules persistence, closes #2
This commit is contained in:
parent
b957fac722
commit
154506c0bf
@ -64,9 +64,6 @@ class dcPackman
|
|||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
$modules = new dcModules($core);
|
|
||||||
$themes = new dcThemes($core);
|
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach($zip_files AS $zip_file) {
|
foreach($zip_files AS $zip_file) {
|
||||||
$zip = new fileUnzip($root . '/' . $zip_file);
|
$zip = new fileUnzip($root . '/' . $zip_file);
|
||||||
@ -87,10 +84,12 @@ class dcPackman
|
|||||||
|
|
||||||
$zip->unzip($define, $cache . '/_define.php');
|
$zip->unzip($define, $cache . '/_define.php');
|
||||||
|
|
||||||
|
$modules = new dcModules($core);
|
||||||
$modules->requireDefine($cache, $zip_root_dir);
|
$modules->requireDefine($cache, $zip_root_dir);
|
||||||
if ($modules->moduleExists($zip_root_dir)) {
|
if ($modules->moduleExists($zip_root_dir)) {
|
||||||
$res[$i] = $modules->getModules($zip_root_dir);
|
$res[$i] = $modules->getModules($zip_root_dir);
|
||||||
} else {
|
} else {
|
||||||
|
$themes = new dcThemes($core);
|
||||||
$themes->requireDefine($cache, $zip_root_dir);
|
$themes->requireDefine($cache, $zip_root_dir);
|
||||||
$res[$i] = $themes->getModules($zip_root_dir);
|
$res[$i] = $themes->getModules($zip_root_dir);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user