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 04:16:40 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-02 04:16:40 +0400
commit02e030ee78aabfe2b8453dbe03f05459a353d7eb (patch)
treedfcc0012980bee87535cbc1b8e481794d4ecc176 /plugins/Annotations
parentff3bb73aafc4a03a2edc69b16e2182a37f3f5e3d (diff)
Refs #5037 Refactor the factory out of the Period class in its own Period\Factory class
Diffstat (limited to 'plugins/Annotations')
-rwxr-xr-xplugins/Annotations/API.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Annotations/API.php b/plugins/Annotations/API.php
index a390f01883..605064bbec 100755
--- a/plugins/Annotations/API.php
+++ b/plugins/Annotations/API.php
@@ -326,7 +326,7 @@ class API extends \Piwik\Plugin\API
if ($period == 'range') {
$oPeriod = new Range('day', $date);
} else {
- $oPeriod = Period::factory($period, Date::factory($date));
+ $oPeriod = Period\Factory::build($period, Date::factory($date));
}
$startDate = $oPeriod->getDateStart();