diff options
author | ctrlaltca@gmail.com <> | 2012-01-25 08:33:05 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2012-01-25 08:33:05 +0000 |
commit | d7f166a39fba8f75323f86c690e80950c3a87f97 (patch) | |
tree | 0f69b9ff508819a0eafa2c1638618f1fcd541b49 /framework/Web/Javascripts | |
parent | 6c18f7df16d1f5bdf64fd615165dcb8a8a42e204 (diff) |
patched #379
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r-- | framework/Web/Javascripts/TJSON.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/TJSON.php b/framework/Web/Javascripts/TJSON.php index e0d31b05..0b119a99 100644 --- a/framework/Web/Javascripts/TJSON.php +++ b/framework/Web/Javascripts/TJSON.php @@ -143,7 +143,11 @@ class TJSON case 'double':
case 'float':
- return (float) $var;
+ $locale=localeConv();
+ if($locale['decimal_point']=='.')
+ return (float) $var;
+ else
+ return str_replace($locale['decimal_point'], '.', (float)$var);
case 'string':
if (($g=Prado::getApplication()->getGlobalization(false))!==null &&
|