Generate_lang_file : Added support of LSformElement_valueWithUnit's units configuration

This commit is contained in:
Benjamin Renard 2011-03-24 15:47:40 +01:00
parent a3fdebd362
commit 88221346a5

View file

@ -105,6 +105,13 @@ if (loadDir('../'.LS_OBJECTS_DIR)) {
}
}
}
// LSattr_html_valueWithUnit
if ($attr['html_type']=='valueWithUnit' && is_array($attr['html_options']['units'])) {
foreach($attr['html_options']['units'] as $pname) {
add($pname);
}
}
// Check data
if (is_array($attr['check_data'])) {