diff options
author | diosmosis <benaka@piwik.pro> | 2014-11-24 13:20:25 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-11-24 13:20:25 +0300 |
commit | 551413f3d3694830aa0822f7f28e6a33372eff67 (patch) | |
tree | bb4a9cebfcd03ee22fdbd4f95d1f55a6ff9b5dc0 /core/Plugin/Visualization.php | |
parent | c8daaabc8b1dcee3c2db01665ef98dd1883cbf7c (diff) |
Move MetricsFormatter::getMetricsToFormat logic to Report class.
Diffstat (limited to 'core/Plugin/Visualization.php')
-rw-r--r-- | core/Plugin/Visualization.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Plugin/Visualization.php b/core/Plugin/Visualization.php index 17e8cf5f94..7e6aec2eaa 100644 --- a/core/Plugin/Visualization.php +++ b/core/Plugin/Visualization.php @@ -320,11 +320,11 @@ class Visualization extends ViewDataTable { $dataTable = $this->dataTable instanceof DataTable\Map ? $this->dataTable->getFirstRow() : $this->dataTable; - $processedMetrics = $this->metricsFormatter->getMetricsToFormat($dataTable, $this->report); + $metrics = Report::getMetricsForTable($dataTable, $this->report); // TODO: instead of iterating & calling translate everywhere, maybe we can get all translated names in one place. // may be difficult, though, since translated metrics are specific to the report. - foreach ($processedMetrics as $metric) { + foreach ($metrics as $metric) { $name = $metric->getName(); if (empty($this->config->translations[$name])) { |