Skip to content

Commit

Permalink
Additional informations passed in the hook "isExcludedVisit" (issue #…
Browse files Browse the repository at this point in the history
…10415) (#10564)

* Additional informations passed in the hook "isExcludedVisit" (issue #10415)

* Added better description to the new parameters

* Update VisitExcluded.php

* Remove two parameters not needed as better to use the Request object

* Update VisitExcluded.php
  • Loading branch information
Thomas--F authored and mattab committed Sep 28, 2016
1 parent 2929e0c commit 8ef6b29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/Tracker/VisitExcluded.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ public function isExcluded()
* @param bool &$excluded Whether the request should be excluded or not. Initialized
* to `false`. Event subscribers should set it to `true` in
* order to exclude the request.
* @param Request $request The request object which contains all of the request's information
*
*/
Piwik::postEvent('Tracker.isExcludedVisit', array(&$excluded));
Piwik::postEvent('Tracker.isExcludedVisit', array(&$excluded, $this->request));

/*
* Following exclude operations happen after the hook.
Expand Down

0 comments on commit 8ef6b29

Please sign in to comment.