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>2014-05-02 05:31:49 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-02 05:31:49 +0400
commit77fa82f580764931504a28c91490f66633408c92 (patch)
tree0a330fecd48744f4b824a1f049e981a3197bc33f /core/Archive.php
parentffdc6f0dfa908591897c0a15f6d2bd47b7fadc3c (diff)
Fixes #5037 You can now configure periods that are available in the UI and API
; The list of periods that are available in the Piwik calendar ; Example use case: custom date range requests are processed in real time, ; so they may take a few minutes on very high traffic website: you may remove "range" below to disable this period enabled_periods_UI = "day,week,month,year,range" enabled_periods_API = "day,week,month,year,range"
Diffstat (limited to 'core/Archive.php')
-rw-r--r--core/Archive.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Archive.php b/core/Archive.php
index f4732c2751..a271f40905 100644
--- a/core/Archive.php
+++ b/core/Archive.php
@@ -201,7 +201,7 @@ class Archive
$websiteIds = Site::getIdSitesFromIdSitesString($idSites, $_restrictSitesToLogin);
if (Period::isMultiplePeriod($strDate, $period)) {
- $oPeriod = new Range($period, $strDate);
+ $oPeriod = Factory::build($period, $strDate);
$allPeriods = $oPeriod->getSubperiods();
} else {
$timezone = count($websiteIds) == 1 ? Site::getTimezoneFor($websiteIds[0]) : false;