1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Fix minori

This commit is contained in:
Pek5892
2024-03-13 09:47:05 +01:00
parent 05a6bb9123
commit 0af35e0a64
4 changed files with 43 additions and 17 deletions

View File

@@ -79,8 +79,6 @@ if (file_exists($extraction_dir.'/VERSION')) {
// Eventuale registrazione nel database
if (empty($installed)) {
$dbo->insert($table, array_merge($insert, [
'name' => $info['name'],
'title' => !empty($info['title']) ? $info['title'] : $info['name'],
'directory' => $info['directory'],
'options' => $info['options'],
'version' => $info['version'],
@@ -89,6 +87,13 @@ if (file_exists($extraction_dir.'/VERSION')) {
'default' => 0,
'enabled' => 1,
]));
$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' => setting('Lingua'),
]));
flash()->error(tr('Installazione completata!'));
} else {
@@ -140,8 +145,6 @@ if (file_exists($extraction_dir.'/VERSION')) {
// Eventuale registrazione nel database
if (empty($installed)) {
$dbo->insert($table, array_merge($insert, [
'name' => $info['name'],
'title' => !empty($info['title']) ? $info['title'] : $info['name'],
'directory' => $info['directory'],
'options' => $info['options'],
'version' => $info['version'],
@@ -150,7 +153,13 @@ if (file_exists($extraction_dir.'/VERSION')) {
'default' => 0,
'enabled' => 1,
]));
$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' => setting('Lingua'),
]));
flash()->error(tr('Installazione completata!'));
} else {
flash()->error(tr('Aggiornamento completato!'));