Changed some lines in configurar_agente

This commit is contained in:
Arturo Gonzalez 2017-07-26 13:36:42 +02:00
parent 729503f509
commit 82b6904289
1 changed files with 13 additions and 1 deletions

View File

@ -1011,13 +1011,25 @@ if ($update_module || $create_module) {
}
}
$values_macros = array();
$values_macros['macros'] = base64_encode(json_encode($macros));
$macros_for_data = enterprise_hook(
'config_agents_get_macros_data_conf', array($values_macros));
if ($macros_for_data != '') {
$_new_configuration_data = str_replace('module_end',
$macros_for_data . "module_end", $_new_configuration_data);
}
/*
$macros_for_data = enterprise_hook('config_agents_get_macros_data_conf', array($_POST));
if ($macros_for_data !== ENTERPRISE_NOT_HOOK && $macros_for_data != '') {
// Add macros to configuration file
$new_configuration_data = str_replace('module_end', $macros_for_data."module_end", $new_configuration_data);
}
*/
$configuration_data = $new_configuration_data;
}