diff options
author | sgiehl <stefan@piwik.org> | 2015-10-10 22:54:02 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-10-11 15:46:00 +0300 |
commit | 0dd0926c012f54d9a2a43249e0d11ff38394cdc7 (patch) | |
tree | a04ef96aebf9f6da6495a868246ab3325cc3a6da /core/DataTable/Filter/CalculateEvolutionFilter.php | |
parent | 760ff363143d960528bd9f2ebe2d97d98582c8c4 (diff) |
use number formats for values displayed besides sparkline and for evolution data
Diffstat (limited to 'core/DataTable/Filter/CalculateEvolutionFilter.php')
-rwxr-xr-x | core/DataTable/Filter/CalculateEvolutionFilter.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/DataTable/Filter/CalculateEvolutionFilter.php b/core/DataTable/Filter/CalculateEvolutionFilter.php index 5af658bad6..73274c537d 100755 --- a/core/DataTable/Filter/CalculateEvolutionFilter.php +++ b/core/DataTable/Filter/CalculateEvolutionFilter.php @@ -11,6 +11,7 @@ namespace Piwik\DataTable\Filter; use Piwik\Common; use Piwik\DataTable; use Piwik\DataTable\Row; +use Piwik\NumberFormatter; use Piwik\Site; /** @@ -157,10 +158,10 @@ class CalculateEvolutionFilter extends ColumnCallbackAddColumnPercentage { $number = self::getPercentageValue($currentValue - $pastValue, $pastValue, $quotientPrecision); if ($appendPercentSign) { - $number = self::appendPercentSign($number); + return NumberFormatter::getInstance()->formatPercent($number, $quotientPrecision); } - return $number; + return NumberFormatter::getInstance()->format($number, $quotientPrecision); } public static function appendPercentSign($number) |