diff --git a/update_amda/mvTemplates.php b/update_amda/mvTemplates.php index c4d202b..3a54ecb 100644 --- a/update_amda/mvTemplates.php +++ b/update_amda/mvTemplates.php @@ -45,5 +45,18 @@ $to = "$PARAMTEMPLATEDIR/$fileName.xml"; copy($from,$to); } + // for predefined params + $predefinedNodes = $template->getElementsByTagName('predefined'); + if ($predefinedNodes->length > 0) { + $paramPredefinedNodes = $predefinedNodes->item(0)->getElementsByTagName('param'); + if ($paramPredefinedNodes->length > 0) { + if (file_exists("$AMDAINTERNALDIR/PARAM_DEF/$paramId.xml")) { + echo "Template ".$paramId.PHP_EOL; + $from = "$AMDAINTERNALDIR/PARAM_DEF/$paramId.xml"; + $to = "$PARAMTEMPLATEDIR/$fileName.xml"; + copy($from,$to); + } + } + } } ?> -- libgit2 0.21.2