diff options
author | sgiehl <stefan@piwik.org> | 2015-10-11 02:05:26 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-10-11 15:46:02 +0300 |
commit | ef0da68a473a58acd1d844193a00a7f1327455d7 (patch) | |
tree | a536f892d2d57745be25d8e42a2f7860ded9f576 /core | |
parent | b33917db3c6b46841e98482863a48ab86e67b994 (diff) |
use number formats in SMS/PDF reports and in static image graphs
Diffstat (limited to 'core')
-rw-r--r-- | core/ReportRenderer/Pdf.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ReportRenderer/Pdf.php b/core/ReportRenderer/Pdf.php index 0c4fb2f6a3..59fb862650 100644 --- a/core/ReportRenderer/Pdf.php +++ b/core/ReportRenderer/Pdf.php @@ -10,6 +10,7 @@ namespace Piwik\ReportRenderer; use Piwik\Common; use Piwik\Filesystem; +use Piwik\NumberFormatter; use Piwik\Piwik; use Piwik\Plugins\API\API; use Piwik\ReportRenderer; @@ -405,7 +406,7 @@ class Pdf extends ReportRenderer if (empty($rowMetrics[$columnId])) { $rowMetrics[$columnId] = 0; } - $this->TCPDF->Cell($this->cellWidth, $this->cellHeight, $rowMetrics[$columnId], 'LR', 0, 'L', $fill); + $this->TCPDF->Cell($this->cellWidth, $this->cellHeight, NumberFormatter::getInstance()->format($rowMetrics[$columnId]), 'LR', 0, 'L', $fill); } } |