diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-12-07 23:08:10 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-12-07 23:08:10 +0300 |
commit | 92a56166c351486bf26e4c3d3247eadfc8d301fa (patch) | |
tree | b7b0884cb84b7f3bb1fea5d896d929aa6c10cf25 | |
parent | c21d46f791c5eb7a68ebd8fc8c982786f3005cea (diff) |
fixes #6819
-rw-r--r-- | core/Segment.php | 3 | ||||
-rw-r--r-- | plugins/Live/Controller.php | 2 | ||||
-rw-r--r-- | plugins/Live/templates/getVisitorProfilePopup.twig | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/core/Segment.php b/core/Segment.php index 7fe4c061fd..487245cf1c 100644 --- a/core/Segment.php +++ b/core/Segment.php @@ -80,7 +80,8 @@ class Segment * Constructor. * * @param string $segmentCondition The segment condition, eg, `'browserCode=ff;countryCode=CA'`. - * @param array $idSites The list of sites the st + * @param array $idSites The list of sites the segment will be used with. Some segments are + * dependent on the site, such as goal segments. * @throws */ public function __construct($segmentCondition, $idSites) diff --git a/plugins/Live/Controller.php b/plugins/Live/Controller.php index 82dccb92bc..421a0afb62 100644 --- a/plugins/Live/Controller.php +++ b/plugins/Live/Controller.php @@ -145,7 +145,7 @@ class Controller extends \Piwik\Plugin\Controller $startCounter = Common::getRequestVar('filter_offset', 0, 'int'); $nextVisits = Request::processRequest('Live.getLastVisitsDetails', array( 'segment' => self::getSegmentWithVisitorId(), - 'filter_limit' => API::VISITOR_PROFILE_MAX_VISITS_TO_SHOW, + 'filter_limit' => VisitorProfile::VISITOR_PROFILE_MAX_VISITS_TO_SHOW, 'filter_offset' => $startCounter, 'period' => false, 'date' => false diff --git a/plugins/Live/templates/getVisitorProfilePopup.twig b/plugins/Live/templates/getVisitorProfilePopup.twig index afb9551321..c33f2d2181 100644 --- a/plugins/Live/templates/getVisitorProfilePopup.twig +++ b/plugins/Live/templates/getVisitorProfilePopup.twig @@ -141,7 +141,7 @@ </ol> </div> <div class="visitor-profile-more-info"> - {% if visitorData.lastVisits.getRowsCount() >= constant("Piwik\\Plugins\\Live\\API::VISITOR_PROFILE_MAX_VISITS_TO_SHOW") %} + {% if visitorData.lastVisits.getRowsCount() >= constant("Piwik\\Plugins\\Live\\VisitorProfile::VISITOR_PROFILE_MAX_VISITS_TO_SHOW") %} <a href="#">{{ 'Live_LoadMoreVisits'|translate }}</a> <img class="loadingPiwik" style="display:none;" src="plugins/Morpheus/images/loading-blue.gif"/> {% else %} <span class="visitor-profile-no-visits">{{ 'Live_NoMoreVisits'|translate }}</span> |