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:
authordiosmosis <benaka@piwik.pro>2014-11-14 05:22:49 +0300
committerdiosmosis <benaka@piwik.pro>2014-11-14 05:22:49 +0300
commit545d316d4dad434edfe5048807bfbe686f856259 (patch)
tree2f82ab2c064539c0624b7496ccfd41398dee75db /core/Metrics.php
parentf57473c98324fa6026c4e7776f30c104d81d0989 (diff)
Make MetricsFormatter a class with instance methods and move Html related functionality to derived class. Use FOrmatter in Metric::format calls so Metrics do not have to be aware of context of formatting, and so Metric::format methods will have less code redundancy.
Diffstat (limited to 'core/Metrics.php')
-rw-r--r--core/Metrics.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Metrics.php b/core/Metrics.php
index 4614cf2d0d..009fa36151 100644
--- a/core/Metrics.php
+++ b/core/Metrics.php
@@ -10,6 +10,7 @@ namespace Piwik;
use Piwik\Cache\LanguageAwareStaticCache;
use Piwik\Cache\PluginAwareStaticCache;
+use Piwik\Metrics\Formatter;
require_once PIWIK_INCLUDE_PATH . "/core/Piwik.php";
@@ -234,7 +235,7 @@ class Metrics
{
$nameToUnit = array(
'_rate' => '%',
- 'revenue' => MetricsFormatter::getCurrencySymbol($idSite),
+ 'revenue' => Formatter::getCurrencySymbol($idSite),
'_time_' => 's'
);