X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a4d1c5627c3958245ea7e2e573267e34f5872471..6e2b1ec1880cebedef5a1ca380820ad0d40d06a2:/WEB-INF/lib/form/FloatField.class.php diff --git a/WEB-INF/lib/form/FloatField.class.php b/WEB-INF/lib/form/FloatField.class.php index 6bbfd64c..5b939754 100644 --- a/WEB-INF/lib/form/FloatField.class.php +++ b/WEB-INF/lib/form/FloatField.class.php @@ -29,18 +29,20 @@ import('form.TextField'); class FloatField extends TextField { - var $mDelimiter = '.'; var $mFFormat; - var $class = 'FloatField'; - + 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) {