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:
authorsgiehl <stefan@piwik.org>2015-10-10 22:54:02 +0300
committersgiehl <stefan@piwik.org>2015-10-11 15:46:00 +0300
commit0dd0926c012f54d9a2a43249e0d11ff38394cdc7 (patch)
treea04ef96aebf9f6da6495a868246ab3325cc3a6da /core/Metrics
parent760ff363143d960528bd9f2ebe2d97d98582c8c4 (diff)
use number formats for values displayed besides sparkline and for evolution data
Diffstat (limited to 'core/Metrics')
-rw-r--r--core/Metrics/Formatter.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Metrics/Formatter.php b/core/Metrics/Formatter.php
index 69d32bc628..8fbe5cbb89 100644
--- a/core/Metrics/Formatter.php
+++ b/core/Metrics/Formatter.php
@@ -11,6 +11,7 @@ use Piwik\Common;
use Piwik\Container\StaticContainer;
use Piwik\DataTable;
use Piwik\Intl\Data\Provider\CurrencyDataProvider;
+use Piwik\NumberFormatter;
use Piwik\Piwik;
use Piwik\Plugin\Metric;
use Piwik\Plugin\ProcessedMetric;
@@ -98,7 +99,7 @@ class Formatter
$seconds = $minusDaysAndHours - $minutes * 60;
$precision = ($seconds > 0 && $seconds < 0.01 ? 3 : 2);
- $seconds = round($seconds, $precision);
+ $seconds = NumberFormatter::getInstance()->formatNumber(round($seconds, $precision), $precision);
if ($years > 0) {
$return = sprintf(Piwik::translate('General_YearsDays'), $years, $days);