diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-12-05 12:58:46 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-12-05 12:58:46 +0300 |
commit | af73717d45280335b33707295fc4a72f3937d74e (patch) | |
tree | 5a6d665f3beee0c7c840def74fabc9b0c2722d4f /plugins/Live | |
parent | 8ba4ba154aab7ac286b66ff16b59bb798ac3fb45 (diff) |
Removed checkLatLong API parameter and always set the info
Diffstat (limited to 'plugins/Live')
-rw-r--r-- | plugins/Live/API.php | 6 | ||||
-rw-r--r-- | plugins/Live/Controller.php | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/plugins/Live/API.php b/plugins/Live/API.php index fc08e510db..970056001b 100644 --- a/plugins/Live/API.php +++ b/plugins/Live/API.php @@ -138,11 +138,9 @@ class API extends \Piwik\Plugin\API * @param int $idSite Site ID * @param bool|false|string $visitorId The ID of the visitor whose profile to retrieve. * @param bool|false|string $segment - * @param bool $checkForLatLong If true, hasLatLong will appear in the output and be true if - * one of the first 100 visits has a latitude/longitude. * @return array */ - public function getVisitorProfile($idSite, $visitorId = false, $segment = false, $checkForLatLong = false) + public function getVisitorProfile($idSite, $visitorId = false, $segment = false) { Piwik::checkUserHasViewAccess($idSite); @@ -163,7 +161,7 @@ class API extends \Piwik\Plugin\API } $profile = new VisitorProfile(); - $result = $profile->makeVisitorProfile($visits, $idSite, $visitorId, $segment, $checkForLatLong); + $result = $profile->makeVisitorProfile($visits, $idSite, $visitorId, $segment); /** * Triggered in the Live.getVisitorProfile API method. Plugins can use this event diff --git a/plugins/Live/Controller.php b/plugins/Live/Controller.php index da434412dd..82dccb92bc 100644 --- a/plugins/Live/Controller.php +++ b/plugins/Live/Controller.php @@ -109,7 +109,7 @@ class Controller extends \Piwik\Plugin\Controller $view = new View('@Live/getVisitorProfilePopup.twig'); $view->idSite = $idSite; $view->goals = APIGoals::getInstance()->getGoals($idSite); - $view->visitorData = Request::processRequest('Live.getVisitorProfile', array('checkForLatLong' => true)); + $view->visitorData = Request::processRequest('Live.getVisitorProfile'); $view->exportLink = $this->getVisitorProfileExportLink(); if (Common::getRequestVar('showMap', 1) == 1 |