Commit 7d35612acfe62da5b9de6dae15b66cd14780c321
1 parent
7911f4bc
Exists in
master
and in
66 other branches
Fix ParamManager for T96
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
src/InputOutput/IHMImpl/Tools/IHMParamManagerClass.php
... | ... | @@ -161,6 +161,9 @@ class IHMParamManagerClass |
161 | 161 | if ($template_id !== FALSE) { |
162 | 162 | $linkedParamId = $template_id; |
163 | 163 | } |
164 | + else { | |
165 | + $linkedParamId = $this->templateParamsManager->replaceArgs($linkedParamId, $templateArgs); | |
166 | + } | |
164 | 167 | |
165 | 168 | if ($this->templateParamsManager->isTemplatedParam($linkedParamId)) { |
166 | 169 | $linkedParamPath = $this->templateParamsManager->generateTemplatedParamFile($linkedParamId, $templateArgs); |
... | ... |
src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php
... | ... | @@ -218,7 +218,7 @@ class IHMParamTemplateClass |
218 | 218 | /* |
219 | 219 | * @brief Replace args in string |
220 | 220 | */ |
221 | - private function replaceArgs($string, $template_args) { | |
221 | + public function replaceArgs($string, $template_args) { | |
222 | 222 | $result = $string; |
223 | 223 | foreach ($template_args as $template_arg_key => $template_arg_value) { |
224 | 224 | $result = str_replace("##".$template_arg_key."##", $template_arg_value, $result); |
... | ... |