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:
@@ -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!'));
|
||||
|
||||
Reference in New Issue
Block a user