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/Week.php')
-rw-r--r--core/Period/Week.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/Period/Week.php b/core/Period/Week.php
index 1933a0aa5c..370a05656b 100644
--- a/core/Period/Week.php
+++ b/core/Period/Week.php
@@ -8,13 +8,15 @@
* @category Piwik
* @package Piwik
*/
-use Piwik\Period;
+namespace Piwik\Period;
+
+use Piwik\Period\Day;
/**
* @package Piwik
* @subpackage Period
*/
-class Piwik_Period_Week extends Period
+class Week extends Period
{
protected $label = 'week';
@@ -88,7 +90,7 @@ class Piwik_Period_Week extends Period
$currentDay = clone $startWeek;
while ($currentDay->compareWeek($startWeek) == 0) {
- $this->addSubperiod(new Piwik_Period_Day($currentDay));
+ $this->addSubperiod(new Day($currentDay));
$currentDay = $currentDay->addDay(1);
}
}