From be52119506efb60bf1c2b8bee792f866fc5d2f0f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 2 Feb 2017 10:37:56 +0100 Subject: [PATCH] generate_lang_file.php : remove check on html_type to handle units of valueWithUnit form element to permit to handle children classes --- public_html/lang/generate_lang_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/lang/generate_lang_file.php b/public_html/lang/generate_lang_file.php index 0a378a36..58df91a2 100755 --- a/public_html/lang/generate_lang_file.php +++ b/public_html/lang/generate_lang_file.php @@ -196,7 +196,7 @@ if (loadDir(LS_OBJECTS_DIR) && loadDir(LS_LOCAL_DIR.LS_OBJECTS_DIR)) { } // LSattr_html_valueWithUnit - if ($attr['html_type']=='valueWithUnit' && is_array($attr['html_options']['units'])) { + if (is_array($attr['html_options']['units'])) { foreach($attr['html_options']['units'] as $pname) { add($pname); }