From 715b5c0a681ed7c5f68a5920503a399817cc575a Mon Sep 17 00:00:00 2001 From: pek5892 Date: Mon, 3 Jun 2024 10:28:18 +0200 Subject: [PATCH] Fix installazione moduli --- modules/aggiornamenti/upload_modules.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/aggiornamenti/upload_modules.php b/modules/aggiornamenti/upload_modules.php index f1cc8d7aa..a27fff848 100755 --- a/modules/aggiornamenti/upload_modules.php +++ b/modules/aggiornamenti/upload_modules.php @@ -78,6 +78,7 @@ if (file_exists($extraction_dir.'/VERSION')) { if (empty($installed)) { $dbo->insert($table, array_merge($insert, [ 'directory' => $info['directory'], + 'name' => $info['name'], 'options' => $info['options'], 'version' => $info['version'], 'compatibility' => $info['compatibility'], @@ -89,7 +90,6 @@ if (file_exists($extraction_dir.'/VERSION')) { ])); $id_record = $dbo->lastInsertedID(); $dbo->insert($table.'_lang', array_merge($insert, [ - 'name' => $info['name'], 'title' => !empty($info['title']) ? $info['title'] : $info['name'], 'id_record' => $id_record, 'id_lang' => Models\Locale::getDefault()->id, @@ -147,6 +147,7 @@ if (file_exists($extraction_dir.'/VERSION')) { if (empty($installed)) { $dbo->insert($table, array_merge($insert, [ 'directory' => $info['directory'], + 'name' => $info['name'], 'options' => $info['options'], 'version' => $info['version'], 'compatibility' => $info['compatibility'], @@ -156,7 +157,6 @@ if (file_exists($extraction_dir.'/VERSION')) { ])); $id_record = $dbo->lastInsertedID(); $dbo->insert($table.'_lang', array_merge($insert_lang, [ - 'name' => $info['name'], 'title' => !empty($info['title']) ? $info['title'] : $info['name'], 'id_record' => $id_record, 'id_lang' => Models\Locale::getDefault()->id,