Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-11-11 01:13:49 +0300
committerThomas Steur <thomas.steur@googlemail.com>2014-11-11 01:13:49 +0300
commit02d6d9135096cc91d30864ff1e3b54477dfae28d (patch)
tree8638f94c21bb7d75c242bdf46d1e52d7486852d2 /plugins/CoreVisualizations
parent9c369538f29a4eb7e1713646e687a7f41800d6f0 (diff)
refs #5330 make sure to output float values in case a German locale is used or another locale that uses a comma instead of dot to separate decimal
Diffstat (limited to 'plugins/CoreVisualizations')
-rw-r--r--plugins/CoreVisualizations/JqplotDataGenerator/Chart.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CoreVisualizations/JqplotDataGenerator/Chart.php b/plugins/CoreVisualizations/JqplotDataGenerator/Chart.php
index d54de973d0..7ac153a509 100644
--- a/plugins/CoreVisualizations/JqplotDataGenerator/Chart.php
+++ b/plugins/CoreVisualizations/JqplotDataGenerator/Chart.php
@@ -8,6 +8,7 @@
*/
namespace Piwik\Plugins\CoreVisualizations\JqplotDataGenerator;
+use Piwik\Common;
use Piwik\ProxyHttp;
/**
@@ -58,7 +59,7 @@ class Chart
);
array_walk($data, function (&$v) {
- $v = (float)$v;
+ $v = (float) Common::forceDotAsSeparatorForDecimalPoint($v);
});
$this->data[] = & $data;
}