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:
Diffstat (limited to 'core/Archive.php')
-rw-r--r--core/Archive.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Archive.php b/core/Archive.php
index e5884aea70..f4732c2751 100644
--- a/core/Archive.php
+++ b/core/Archive.php
@@ -13,6 +13,7 @@ use Piwik\Archive\Parameters;
use Piwik\ArchiveProcessor\Rules;
use Piwik\DataAccess\ArchiveSelector;
use Piwik\Period\Range;
+use Piwik\Period\Factory;
/**
* The **Archive** class is used to query cached analytics statistics
@@ -204,7 +205,7 @@ class Archive
$allPeriods = $oPeriod->getSubperiods();
} else {
$timezone = count($websiteIds) == 1 ? Site::getTimezoneFor($websiteIds[0]) : false;
- $oPeriod = Period::makePeriodFromQueryParams($timezone, $period, $strDate);
+ $oPeriod = Factory::makePeriodFromQueryParams($timezone, $period, $strDate);
$allPeriods = array($oPeriod);
}
$segment = new Segment($segment, $websiteIds);