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 'plugins/Annotations/API.php')
-rwxr-xr-xplugins/Annotations/API.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Annotations/API.php b/plugins/Annotations/API.php
index faa7d76c97..603cce5431 100755
--- a/plugins/Annotations/API.php
+++ b/plugins/Annotations/API.php
@@ -9,6 +9,7 @@
* @package Piwik_Annotations
*/
use Piwik\Period;
+use Piwik\Period_Range;
use Piwik\Piwik;
/**
@@ -317,7 +318,7 @@ class Piwik_Annotations_API
|| $period == 'range'
) {
if ($period == 'range') {
- $oPeriod = new Piwik_Period_Range('day', $date);
+ $oPeriod = new Period_Range('day', $date);
} else {
$oPeriod = Period::factory($period, Piwik_Date::factory($date));
}