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:
authorFabian Becker <fabian.becker@uni-tuebingen.de>2013-07-18 13:45:02 +0400
committerFabian Becker <fabian.becker@uni-tuebingen.de>2013-07-18 13:45:02 +0400
commit03b4953f008c1063e6d7166143ba844e8c6e89cc (patch)
tree7b9f0fef13d75417c551f813c98dba1a22f2fff3 /plugins/VisitTime
parent9b2c0a7a450fff3b634f8119c8003ae1d20b97d0 (diff)
Refactor class Piwik_Common to \Piwik\Core\Common
Notice that auto refactoring has created a nested namespace. Not sure this is what we want - so we might have to edit those nested namespaces afterwards (I think they don't look so good)
Diffstat (limited to 'plugins/VisitTime')
-rw-r--r--plugins/VisitTime/VisitTime.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/VisitTime/VisitTime.php b/plugins/VisitTime/VisitTime.php
index dee8d07368..990bf350e3 100644
--- a/plugins/VisitTime/VisitTime.php
+++ b/plugins/VisitTime/VisitTime.php
@@ -8,7 +8,7 @@
* @category Piwik_Plugins
* @package Piwik_VisitTime
*/
-use Piwik\Core\Piwik_Common;
+use Piwik\Core\Common;
/**
*
@@ -154,7 +154,7 @@ class Piwik_VisitTime extends Piwik_Plugin
);
// add the visits by day of week as a related report, if the current period is not 'day'
- if (Piwik_Common::getRequestVar('period', 'day') != 'day') {
+ if (Common::getRequestVar('period', 'day') != 'day') {
$reportViewProperties['VisitTime.getVisitInformationPerLocalTime']['relatedReports'] = array(
'VisitTime.getByDayOfWeek' => Piwik_Translate('VisitTime_VisitsByDayOfWeek')
);
@@ -185,9 +185,9 @@ class Piwik_VisitTime extends Piwik_Plugin
private static function getDateRangeForFooterMessage()
{
// get query params
- $idSite = Piwik_Common::getRequestVar('idSite');
- $date = Piwik_Common::getRequestVar('date');
- $period = Piwik_Common::getRequestVar('period');
+ $idSite = Common::getRequestVar('idSite');
+ $date = Common::getRequestVar('date');
+ $period = Common::getRequestVar('period');
// create a period instance
$oPeriod = Piwik_Period::makePeriodFromQueryParams(Piwik_Site::getTimezoneFor($idSite), $period, $date);