diff options
Diffstat (limited to 'plugins/UserCountry/Controller.php')
-rw-r--r-- | plugins/UserCountry/Controller.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/UserCountry/Controller.php b/plugins/UserCountry/Controller.php index a6ed712dbe..145f981cc3 100644 --- a/plugins/UserCountry/Controller.php +++ b/plugins/UserCountry/Controller.php @@ -135,9 +135,9 @@ class Controller extends \Piwik\Plugin\ControllerAdmin $result['next_screen'] = $this->getGeoIpUpdaterManageScreen(); } - return Common::json_encode($result); + return json_encode($result); } catch (Exception $ex) { - return Common::json_encode(array('error' => $ex->getMessage())); + return json_encode(array('error' => $ex->getMessage())); } } } @@ -207,15 +207,15 @@ class Controller extends \Piwik\Plugin\ControllerAdmin // the browser so it can download it next $info = $this->getNextMissingDbUrlInfo(); if ($info !== false) { - return Common::json_encode($info); + return json_encode($info); } else { $view = new View("@UserCountry/_updaterNextRunTime"); $view->nextRunTime = GeoIPAutoUpdater::getNextRunTime(); $nextRunTimeHtml = $view->render(); - return Common::json_encode(array('nextRunTime' => $nextRunTimeHtml)); + return json_encode(array('nextRunTime' => $nextRunTimeHtml)); } } catch (Exception $ex) { - return Common::json_encode(array('error' => $ex->getMessage())); + return json_encode(array('error' => $ex->getMessage())); } } } @@ -270,13 +270,13 @@ class Controller extends \Piwik\Plugin\ControllerAdmin $info = $this->getNextMissingDbUrlInfo(); if ($info !== false) { - return Common::json_encode($info); + return json_encode($info); } } - return Common::json_encode($result); + return json_encode($result); } catch (Exception $ex) { - return Common::json_encode(array('error' => $ex->getMessage())); + return json_encode(array('error' => $ex->getMessage())); } } } |