From af73717d45280335b33707295fc4a72f3937d74e Mon Sep 17 00:00:00 2001 From: mattab Date: Fri, 5 Dec 2014 22:58:46 +1300 Subject: Removed checkLatLong API parameter and always set the info --- plugins/Live/API.php | 6 ++---- plugins/Live/Controller.php | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'plugins/Live') 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 -- cgit v1.2.3