diff options
Diffstat (limited to 'plugins/UserCountryMap/Controller.php')
-rw-r--r-- | plugins/UserCountryMap/Controller.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/UserCountryMap/Controller.php b/plugins/UserCountryMap/Controller.php index f1cc36eed0..63e84c6ba8 100644 --- a/plugins/UserCountryMap/Controller.php +++ b/plugins/UserCountryMap/Controller.php @@ -105,6 +105,15 @@ class Controller extends \Piwik\Plugin\Controller $view->config = json_encode($config); $view->noData = empty($config['visitsSummary']['nb_visits']); + $view->continents = array( + 'AF' => \Piwik\Plugins\UserCountry\continentTranslate('afr'), + 'AS' => \Piwik\Plugins\UserCountry\continentTranslate('asi'), + 'EU' => \Piwik\Plugins\UserCountry\continentTranslate('eur'), + 'NA' => \Piwik\Plugins\UserCountry\continentTranslate('amn'), + 'OC' => \Piwik\Plugins\UserCountry\continentTranslate('oce'), + 'SA' => \Piwik\Plugins\UserCountry\continentTranslate('ams') + ); + return $view->render(); } |