diff --git a/src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php b/src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php index f93fec6..c290e0b 100644 --- a/src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php +++ b/src/InputOutput/IHMImpl/Tools/IHMParamTemplateClass.php @@ -161,8 +161,7 @@ class IHMParamTemplateClass if (file_exists($dstFilePath)) { $dateModifDst = filemtime($dstFilePath); $dateModifTemplate = filemtime($templatePath); - - if ($dateModifTemplate != $dateModifDst) + if ($dateModifTemplate == $dateModifDst) //no modification - reuse old generated file return $dstFilePath; } @@ -274,7 +273,7 @@ class IHMParamTemplateClass return; foreach ($arguments as $arg_key => $arg_def) { if (!array_key_exists($arg_key, $template_args)) - $template_args[$arg_key] = $arg_def->default; + $template_args[$arg_key] = $arg_def['default']; } } -- libgit2 0.21.2