LSformElement::valueWithUnit : sort units params before using
authorBenjamin Renard <bn8@zionetrix.net>
Sat, 11 May 2013 17:23:40 +0000 (19:23 +0200)
committerBenjamin Renard <bn8@zionetrix.net>
Sat, 11 May 2013 17:23:40 +0000 (19:23 +0200)
public_html/includes/class/class.LSformElement_valueWithUnit.php

index 50ef1b1..71bba0c 100644 (file)
@@ -46,6 +46,7 @@ class LSformElement_valueWithUnit extends LSformElement {
       foreach($this -> params['html_options']['units'] as $sill => $label) {
         $units[$sill]=__($label);
       }
+      krsort($units);
       return $units;
     }
     LSerror :: addErrorCode('LSformElement_valueWithUnit_01',$this -> name);