Fix installazione moduli

This commit is contained in:
pek5892 2024-06-03 10:28:18 +02:00
parent 44ab37e059
commit 715b5c0a68
1 changed files with 2 additions and 2 deletions

View File

@ -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,