generate_lang_file.php : remove check on html_type to handle units of valueWithUnit...
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 2 Feb 2017 09:37:56 +0000 (10:37 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 2 Feb 2017 09:37:56 +0000 (10:37 +0100)
public_html/lang/generate_lang_file.php

index 0a378a3..58df91a 100755 (executable)
@@ -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);
           }