Fix upload moduli

This commit is contained in:
Pek5892 2024-04-05 14:32:29 +02:00
parent 60282b2007
commit 783fd1a9c6
1 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ if (file_exists($extraction_dir.'/VERSION')) {
->ignoreVCS(true)
->in($extraction_dir);
$files_module = $finder->getTranslation('name')('MODULE');
$files_module = $finder->name('MODULE');
foreach ($files_module as $file) {
// Informazioni dal file di configurazione
@ -69,8 +69,6 @@ if (file_exists($extraction_dir.'/VERSION')) {
$table = 'zz_modules';
$installed = Module::find((new Module())->getByField('name', $info['name']));
$insert['parent'] = (new Module())->getByField('name', $info['parent']);
$insert['icon'] = $info['icon'];
}
// Copia dei file nella cartella relativa
@ -86,6 +84,8 @@ if (file_exists($extraction_dir.'/VERSION')) {
'order' => 100,
'default' => 0,
'enabled' => 1,
'icon' => $info['icon'],
'parent' => (new Module())->getByField('name', $info['parent']),
]));
$id_record = $dbo->lastInsertedID();
$dbo->insert($table.'_lang', array_merge($insert, [
@ -107,7 +107,7 @@ if (file_exists($extraction_dir.'/VERSION')) {
->ignoreVCS(true)
->in($extraction_dir);
$files_plugin_template = $finder->getTranslation('name')('PLUGIN')->getTranslation('name')('TEMPLATES');
$files_plugin_template = $finder->name('PLUGIN')->name('TEMPLATES');
foreach ($files_plugin_template as $file) {
// Informazioni dal file di configurazione