From 7d35612acfe62da5b9de6dae15b66cd14780c321 Mon Sep 17 00:00:00 2001 From: Benjamin Renard <benjamin.renard@akka.eu> Date: Tue, 21 Nov 2017 18:57:46 +0100 Subject: [PATCH] Fix ParamManager for T96 --- src/InputOutput/IHMImpl/Tools/IHMParamManagerClass.php | 3 +++ src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/InputOutput/IHMImpl/Tools/IHMParamManagerClass.php b/src/InputOutput/IHMImpl/Tools/IHMParamManagerClass.php index fefa15d..5312e5c 100644 --- a/src/InputOutput/IHMImpl/Tools/IHMParamManagerClass.php +++ b/src/InputOutput/IHMImpl/Tools/IHMParamManagerClass.php @@ -161,6 +161,9 @@ class IHMParamManagerClass if ($template_id !== FALSE) { $linkedParamId = $template_id; } + else { + $linkedParamId = $this->templateParamsManager->replaceArgs($linkedParamId, $templateArgs); + } if ($this->templateParamsManager->isTemplatedParam($linkedParamId)) { $linkedParamPath = $this->templateParamsManager->generateTemplatedParamFile($linkedParamId, $templateArgs); diff --git a/src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php b/src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php index a700da4..10133be 100644 --- a/src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php +++ b/src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php @@ -218,7 +218,7 @@ class IHMParamTemplateClass /* * @brief Replace args in string */ - private function replaceArgs($string, $template_args) { + public function replaceArgs($string, $template_args) { $result = $string; foreach ($template_args as $template_arg_key => $template_arg_value) { $result = str_replace("##".$template_arg_key."##", $template_arg_value, $result); -- libgit2 0.21.2