Applying of better way for save config

This commit is contained in:
Jose Gonzalez 2019-10-24 17:21:21 +02:00
parent b0db7c729d
commit c4c7d916e7
1 changed files with 1 additions and 5 deletions

View File

@ -60,11 +60,7 @@ if ($config['sample_agent'] == 1 && !isset($config['sample_agent_deployed'])) {
db_process_sql($query);
// This setting will avoid regenerate all the times the visual consoles.
$values = [
'token' => 'sample_agent_deployed',
'value' => '1',
];
db_process_sql_insert('tconfig', $values);
config_update_value('sample_agent_deployed', 1);
}
extensions_add_main_function('sample_agent_deployment');