]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/FloatField.class.php
A bit more progress on delete attachment.
[timetracker.git] / WEB-INF / lib / form / FloatField.class.php
index b11f4a11511b82ee8329c64c04653a7063ea8d5d..5b939754e453b7482a678e8e18a6fcfed400a570 100644 (file)
@@ -33,13 +33,16 @@ class FloatField extends TextField {
   var $mFFormat;
   
   function __construct($name) {
+    global $user;
+
     $this->class = 'FloatField';
     $this->name = $name;
+    $this->mDelimiter = $user->getDecimalMark();
   }
 
-  function localize($i18n) {
+  function localize() {
     global $user;
-    $this->mDelimiter = $user->decimal_mark;
+    $this->mDelimiter = $user->getDecimalMark();
   }
 
   function setFormat($format) {