Applying of better way for save config
This commit is contained in:
parent
b0db7c729d
commit
c4c7d916e7
pandora_console/extensions
|
@ -60,11 +60,7 @@ if ($config['sample_agent'] == 1 && !isset($config['sample_agent_deployed'])) {
|
||||||
db_process_sql($query);
|
db_process_sql($query);
|
||||||
|
|
||||||
// This setting will avoid regenerate all the times the visual consoles.
|
// This setting will avoid regenerate all the times the visual consoles.
|
||||||
$values = [
|
config_update_value('sample_agent_deployed', 1);
|
||||||
'token' => 'sample_agent_deployed',
|
|
||||||
'value' => '1',
|
|
||||||
];
|
|
||||||
db_process_sql_insert('tconfig', $values);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extensions_add_main_function('sample_agent_deployment');
|
extensions_add_main_function('sample_agent_deployment');
|
||||||
|
|
Loading…
Reference in New Issue