Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-11-05 08:53:39 +0400
committermattab <matthieu.aubry@gmail.com>2013-11-05 08:53:39 +0400
commitcec2571f8c02294a3c34cc48567740b9987d36ba (patch)
tree28d712c17cea3a9638d9bd243e2d79ed52a0a113
parente4f53680f8745052f3fe2c7052700df77768a0ab (diff)
fix transitions
-rw-r--r--plugins/Transitions/API.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Transitions/API.php b/plugins/Transitions/API.php
index b6e66cb8e9..2354b88b9b 100644
--- a/plugins/Transitions/API.php
+++ b/plugins/Transitions/API.php
@@ -72,19 +72,19 @@ class API extends \Piwik\Plugin\API
throw new Exception('NoDataForAction');
}
- // prepare archive processing that can be used by the archiving code
+ // prepare log aggregator
$segment = new Segment($segment, $idSite);
$site = new Site($idSite);
$period = Period::factory($period, $date);
- $archiveProcessor = new ArchiveProcessor($period, $site, $segment);
- $logAggregator = $archiveProcessor->getLogAggregator();
+ $params = new ArchiveProcessor\Parameters($period, $site, $segment);
+ $logAggregator = new LogAggregator($params);
+
// prepare the report
$report = array(
'date' => Period::factory($period->getLabel(), $date)->getLocalizedShortString()
);
$partsArray = explode(',', $parts);
-
if ($parts == 'all' || in_array('internalReferrers', $partsArray)) {
$this->addInternalReferrers($logAggregator, $report, $idaction, $actionType, $limitBeforeGrouping);
}