diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-01-30 04:51:09 +0300 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-01-30 04:51:09 +0300 |
commit | 96eea79c6628c8b36ac8528a892a7ba699bbb194 (patch) | |
tree | dc7907df7d26339598fda423fdc65ae867c3594d /plugins/VisitTime | |
parent | 190431e3a98cc5512c79891c3dd3519e4810a779 (diff) |
fixes #1122
Diffstat (limited to 'plugins/VisitTime')
-rw-r--r-- | plugins/VisitTime/API.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/VisitTime/API.php b/plugins/VisitTime/API.php index 8869bc4a07..e37e2a716b 100644 --- a/plugins/VisitTime/API.php +++ b/plugins/VisitTime/API.php @@ -27,7 +27,7 @@ class Piwik_VisitTime_API return self::$instance; } - protected function getDataTable($name, $idSite, $period, $date ) + static protected function getDataTable($name, $idSite, $period, $date ) { Piwik::checkUserHasViewAccess( $idSite ); $archive = Piwik_Archive::build($idSite, $period, $date ); @@ -38,14 +38,14 @@ class Piwik_VisitTime_API return $dataTable; } - public function getVisitInformationPerLocalTime( $idSite, $period, $date ) + static public function getVisitInformationPerLocalTime( $idSite, $period, $date ) { - return $this->getDataTable('VisitTime_localTime', $idSite, $period, $date ); + return self::getDataTable('VisitTime_localTime', $idSite, $period, $date ); } - public function getVisitInformationPerServerTime( $idSite, $period, $date ) + static public function getVisitInformationPerServerTime( $idSite, $period, $date ) { - return $this->getDataTable('VisitTime_serverTime', $idSite, $period, $date ); + return self::getDataTable('VisitTime_serverTime', $idSite, $period, $date ); } } |