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>2013-07-20 11:09:46 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-20 11:09:46 +0400
commit0a63210e3eae7562af1a3dbee340eb1ee140db3d (patch)
treec9f7c3a36a4b344b25c12aa04fed0733efb3bfa0 /core/Period.php
parent7ca35544d15cdb41b17283e693c8a14777c923ad (diff)
Converting to namespace: Period*, Metrics, Segment, SegmentExpression, PluginsManager
Diffstat (limited to 'core/Period.php')
-rw-r--r--core/Period.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Period.php b/core/Period.php
index 6e74ad4095..f816b58c02 100644
--- a/core/Period.php
+++ b/core/Period.php
@@ -14,7 +14,7 @@ use Piwik\Piwik;
use Piwik_Date;
use Piwik_Period_Day;
use Piwik_Period_Month;
-use Piwik_Period_Range;
+use Piwik\Period_Range;
use Piwik_Period_Week;
use Piwik_Period_Year;
@@ -106,7 +106,7 @@ abstract class Period
return
is_string($dateString)
&& (preg_match('/^(last|previous){1}([0-9]*)$/D', $dateString, $regs)
- || Piwik_Period_Range::parseDateRange($dateString))
+ || Period_Range::parseDateRange($dateString))
&& $period != 'range';
}
@@ -124,7 +124,7 @@ abstract class Period
static public function advancedFactory($strPeriod, $strDate)
{
if (Period::isMultiplePeriod($strDate, $strPeriod) || $strPeriod == 'range') {
- return new Piwik_Period_Range($strPeriod, $strDate);
+ return new Period_Range($strPeriod, $strDate);
}
return Period::factory($strPeriod, Piwik_Date::factory($strDate));
}
@@ -145,7 +145,7 @@ abstract class Period
}
if ($period == 'range') {
- $oPeriod = new Piwik_Period_Range('range', $date, $timezone, Piwik_Date::factory('today', $timezone));
+ $oPeriod = new Period_Range('range', $date, $timezone, Piwik_Date::factory('today', $timezone));
} else {
if (!($date instanceof Piwik_Date)) {
if ($date == 'now' || $date == 'today') {