Fix upload plugins

This commit is contained in:
Pek5892 2024-04-05 15:46:33 +02:00
parent 783fd1a9c6
commit cd80a18bca
1 changed files with 2 additions and 2 deletions

View File

@ -154,12 +154,12 @@ if (file_exists($extraction_dir.'/VERSION')) {
'enabled' => 1,
]));
$id_record = $dbo->lastInsertedID();
$dbo->insert($table.'_lang', array_merge($insert, [
$dbo->insert($table.'_lang', [
'name' => $info['name'],
'title' => !empty($info['title']) ? $info['title'] : $info['name'],
'id_record' => $id_record,
'id_lang' => Models\Locale::getDefault()->id,
]));
]);
flash()->error(tr('Installazione completata!'));
} else {
flash()->error(tr('Aggiornamento completato!'));