mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#11750 module_data name file add module id
This commit is contained in:
parent
aac8aa43fd
commit
94315147cf
@ -10299,8 +10299,7 @@ function api_set_module_data($id, $thrash2, $other, $trash1)
|
|||||||
modules_get_type_name($agentModule['id_tipo_modulo']),
|
modules_get_type_name($agentModule['id_tipo_modulo']),
|
||||||
$data
|
$data
|
||||||
);
|
);
|
||||||
|
if (false === @file_put_contents($config['remote_config'].'/'.io_safe_output($agent['nombre']).'.'.$idAgentModule.'.'.$time.'.data', $xml)) {
|
||||||
if (false === @file_put_contents($config['remote_config'].'/'.io_safe_output($agent['nombre']).'.'.$time.'.data', $xml)) {
|
|
||||||
returnError(sprintf('XML file could not be generated in path: %s', $config['remote_config']));
|
returnError(sprintf('XML file could not be generated in path: %s', $config['remote_config']));
|
||||||
} else {
|
} else {
|
||||||
echo __('XML file was generated successfully in path: ').$config['remote_config'];
|
echo __('XML file was generated successfully in path: ').$config['remote_config'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user