Skip to content
Extraits de code Groupes Projets
Valider af73717d rédigé par mattab's avatar mattab
Parcourir les fichiers

Removed checkLatLong API parameter and always set the info

parent 8ba4ba15
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -138,11 +138,9 @@ class API extends \Piwik\Plugin\API ...@@ -138,11 +138,9 @@ class API extends \Piwik\Plugin\API
* @param int $idSite Site ID * @param int $idSite Site ID
* @param bool|false|string $visitorId The ID of the visitor whose profile to retrieve. * @param bool|false|string $visitorId The ID of the visitor whose profile to retrieve.
* @param bool|false|string $segment * @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 * @return array
*/ */
public function getVisitorProfile($idSite, $visitorId = false, $segment = false, $checkForLatLong = false) public function getVisitorProfile($idSite, $visitorId = false, $segment = false)
{ {
Piwik::checkUserHasViewAccess($idSite); Piwik::checkUserHasViewAccess($idSite);
...@@ -163,7 +161,7 @@ class API extends \Piwik\Plugin\API ...@@ -163,7 +161,7 @@ class API extends \Piwik\Plugin\API
} }
$profile = new VisitorProfile(); $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 * Triggered in the Live.getVisitorProfile API method. Plugins can use this event
......
...@@ -109,7 +109,7 @@ class Controller extends \Piwik\Plugin\Controller ...@@ -109,7 +109,7 @@ class Controller extends \Piwik\Plugin\Controller
$view = new View('@Live/getVisitorProfilePopup.twig'); $view = new View('@Live/getVisitorProfilePopup.twig');
$view->idSite = $idSite; $view->idSite = $idSite;
$view->goals = APIGoals::getInstance()->getGoals($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(); $view->exportLink = $this->getVisitorProfileExportLink();
if (Common::getRequestVar('showMap', 1) == 1 if (Common::getRequestVar('showMap', 1) == 1
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter