Skip to content

Commit

Permalink
Removed checkLatLong API parameter and always set the info
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Dec 5, 2014
1 parent 8ba4ba1 commit af73717
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions plugins/Live/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,9 @@ public function getLastVisitsDetails($idSite, $period = false, $date = false, $s
* @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);

Expand All @@ -163,7 +161,7 @@ public function getVisitorProfile($idSite, $visitorId = false, $segment = false,
}

$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
Expand Down
2 changes: 1 addition & 1 deletion plugins/Live/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function getVisitorProfilePopup()
$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
Expand Down

0 comments on commit af73717

Please sign in to comment.