diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-07-21 12:01:35 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-07-21 12:01:36 +0400 |
commit | aca8ec33a85e0a70b818b6227145041717d7a69e (patch) | |
tree | 41377e3a9737d63222522ef93ecf8483f3faddfa /core/Period/Year.php | |
parent | 0a63210e3eae7562af1a3dbee340eb1ee140db3d (diff) |
Refs #4059 Work in progress: Conversion to use Namespaces: Period*, Metrics, Segment, SegmentExpression, PluginsManager.
Removed some deprecated code.
Diffstat (limited to 'core/Period/Year.php')
-rw-r--r-- | core/Period/Year.php | 6 |
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") ) ); } |