mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Merge branch '1117-module-macros-in-module-agent-final-mix-dev' into 'develop'
Added a last fix See merge request !696
This commit is contained in:
commit
3b6e05d0f5
@ -1001,9 +1001,10 @@ if ($update_module || $create_module) {
|
||||
$macros = io_json_mb_encode($macros);
|
||||
|
||||
$conf_array = explode("\n", io_safe_output($configuration_data));
|
||||
|
||||
foreach ($conf_array as $line) {
|
||||
if (preg_match("/^module_name\s*(.*)/", $line, $match)) {
|
||||
$new_configuration_data .= "module_name $name\n";
|
||||
$new_configuration_data .= "module_name " . io_safe_output($name) . "\n";
|
||||
}
|
||||
// We delete from conf all the module macros starting with _field
|
||||
else if(!preg_match("/^module_macro_field.*/", $line, $match)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user