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:
authorBeezyT <timo@ezdesign.de>2011-11-18 20:15:25 +0400
committerBeezyT <timo@ezdesign.de>2011-11-18 20:15:25 +0400
commit44e1b7ae3820bfeecd72db08ce4c45f3231b5702 (patch)
tree560d19ac0fbd496b542653db2bc489e708c33ed4 /plugins/UserCountry
parent9f2a360d1bf03b96248bc87f272d7fe93dba78a4 (diff)
refs #1820 metrics picker for pie/bar charts in more reports
git-svn-id: http://dev.piwik.org/svn/trunk@5453 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/UserCountry')
-rw-r--r--plugins/UserCountry/Controller.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/UserCountry/Controller.php b/plugins/UserCountry/Controller.php
index 4ecbb9cef0..1ae511e2ec 100644
--- a/plugins/UserCountry/Controller.php
+++ b/plugins/UserCountry/Controller.php
@@ -55,14 +55,10 @@ class Piwik_UserCountry_Controller extends Piwik_Controller
$view->disableExcludeLowPopulation();
$this->setPeriodVariablesView($view);
- $column = 'nb_visits';
- if($view->period == 'day')
- {
- $column = 'nb_uniq_visitors';
- }
- $view->setColumnsToDisplay( array('label',$column) );
- $view->setSortedColumn( $column );
+ $this->setMetricsVariablesView($view);
+
$view->enableShowGoals();
+
return $view;
}