diff options
Diffstat (limited to 'plugins/UserCountryMap/Controller.php')
-rw-r--r-- | plugins/UserCountryMap/Controller.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/UserCountryMap/Controller.php b/plugins/UserCountryMap/Controller.php index e5f845d80a..914835439e 100644 --- a/plugins/UserCountryMap/Controller.php +++ b/plugins/UserCountryMap/Controller.php @@ -63,7 +63,7 @@ class Controller extends \Piwik\Plugin\Controller $view->defaultMetric = 'nb_visits'; // some translations - $view->localeJSON = Common::json_encode(array( + $view->localeJSON = json_encode(array( 'nb_visits' => Piwik::translate('General_NVisits'), 'one_visit' => Piwik::translate('General_OneVisit'), 'no_visit' => Piwik::translate('UserCountryMap_NoVisit'), @@ -90,7 +90,7 @@ class Controller extends \Piwik\Plugin\Controller $view->metrics = $config['metrics'] = $this->getMetrics($idSite, $period, $date, $token_auth); $config['svgBasePath'] = 'plugins/UserCountryMap/svg/'; $config['mapCssPath'] = 'plugins/UserCountryMap/stylesheets/map.css'; - $view->config = Common::json_encode($config); + $view->config = json_encode($config); $view->noData = empty($config['visitsSummary']['nb_visits']); return $view->render(); @@ -198,7 +198,7 @@ class Controller extends \Piwik\Plugin\Controller } if ($encode) { - $params = Common::json_encode($params); + $params = json_encode($params); } return $params; } |