fix module info

This commit is contained in:
Jean-Christian Paul Denis 2022-02-01 21:39:38 +01:00
parent d5d26b74f8
commit 01ead0c97a
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -93,12 +93,16 @@ class dcPackman
$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);
} }
$res[$i]['id'] = $zip_root_dir; if (is_array($res[$i])) {
$res[$i]['root'] = $root . '/' . $zip_file; $res[$i] = array_merge($res[$i], [
'id' => $zip_root_dir,
'root' => $root . '/' . $zip_file
]);
unlink($cache . '_define.php'); unlink($cache . '_define.php');
$i++; $i++;
} }
}
return $res; return $res;
} }