1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-30 15:35:09 +01:00

Fix upload plugins

This commit is contained in:
Pek5892 2024-04-05 15:46:33 +02:00
parent 783fd1a9c6
commit cd80a18bca

View File

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