diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-05-02 04:16:40 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-05-02 04:16:40 +0400 |
commit | 02e030ee78aabfe2b8453dbe03f05459a353d7eb (patch) | |
tree | dfcc0012980bee87535cbc1b8e481794d4ecc176 /core/Archive.php | |
parent | ff3bb73aafc4a03a2edc69b16e2182a37f3f5e3d (diff) |
Refs #5037 Refactor the factory out of the Period class in its own Period\Factory class
Diffstat (limited to 'core/Archive.php')
-rw-r--r-- | core/Archive.php | 3 |
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); |