Fix installazione moduli
This commit is contained in:
parent
44ab37e059
commit
715b5c0a68
|
@ -78,6 +78,7 @@ if (file_exists($extraction_dir.'/VERSION')) {
|
||||||
if (empty($installed)) {
|
if (empty($installed)) {
|
||||||
$dbo->insert($table, array_merge($insert, [
|
$dbo->insert($table, array_merge($insert, [
|
||||||
'directory' => $info['directory'],
|
'directory' => $info['directory'],
|
||||||
|
'name' => $info['name'],
|
||||||
'options' => $info['options'],
|
'options' => $info['options'],
|
||||||
'version' => $info['version'],
|
'version' => $info['version'],
|
||||||
'compatibility' => $info['compatibility'],
|
'compatibility' => $info['compatibility'],
|
||||||
|
@ -89,7 +90,6 @@ if (file_exists($extraction_dir.'/VERSION')) {
|
||||||
]));
|
]));
|
||||||
$id_record = $dbo->lastInsertedID();
|
$id_record = $dbo->lastInsertedID();
|
||||||
$dbo->insert($table.'_lang', array_merge($insert, [
|
$dbo->insert($table.'_lang', array_merge($insert, [
|
||||||
'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,
|
||||||
|
@ -147,6 +147,7 @@ if (file_exists($extraction_dir.'/VERSION')) {
|
||||||
if (empty($installed)) {
|
if (empty($installed)) {
|
||||||
$dbo->insert($table, array_merge($insert, [
|
$dbo->insert($table, array_merge($insert, [
|
||||||
'directory' => $info['directory'],
|
'directory' => $info['directory'],
|
||||||
|
'name' => $info['name'],
|
||||||
'options' => $info['options'],
|
'options' => $info['options'],
|
||||||
'version' => $info['version'],
|
'version' => $info['version'],
|
||||||
'compatibility' => $info['compatibility'],
|
'compatibility' => $info['compatibility'],
|
||||||
|
@ -156,7 +157,6 @@ if (file_exists($extraction_dir.'/VERSION')) {
|
||||||
]));
|
]));
|
||||||
$id_record = $dbo->lastInsertedID();
|
$id_record = $dbo->lastInsertedID();
|
||||||
$dbo->insert($table.'_lang', array_merge($insert_lang, [
|
$dbo->insert($table.'_lang', array_merge($insert_lang, [
|
||||||
'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,
|
||||||
|
|
Loading…
Reference in New Issue