mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Applying of better way for save config
This commit is contained in:
parent
b0db7c729d
commit
c4c7d916e7
@ -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…
x
Reference in New Issue
Block a user