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/Period/Year.php')
-rw-r--r--core/Period/Year.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Period/Year.php b/core/Period/Year.php
index d83e2ac842..56cc52fa6b 100644
--- a/core/Period/Year.php
+++ b/core/Period/Year.php
@@ -9,6 +9,8 @@
* @package Piwik
*/
use Piwik\Period;
+use Piwik\Date;
+use Piwik\Period\Month;
/**
* @package Piwik
@@ -63,8 +65,8 @@ class Piwik_Period_Year extends Period
$year = $this->date->toString("Y");
for ($i = 1; $i <= 12; $i++) {
- $this->addSubperiod(new Piwik_Period_Month(
- Piwik_Date::factory("$year-$i-01")
+ $this->addSubperiod(new Month(
+ Date::factory("$year-$i-01")
)
);
}