diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-07-20 11:09:46 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-07-20 11:09:46 +0400 |
commit | 0a63210e3eae7562af1a3dbee340eb1ee140db3d (patch) | |
tree | c9f7c3a36a4b344b25c12aa04fed0733efb3bfa0 /plugins/Referers/Controller.php | |
parent | 7ca35544d15cdb41b17283e693c8a14777c923ad (diff) |
Converting to namespace: Period*, Metrics, Segment, SegmentExpression, PluginsManager
Diffstat (limited to 'plugins/Referers/Controller.php')
-rw-r--r-- | plugins/Referers/Controller.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Referers/Controller.php b/plugins/Referers/Controller.php index 050965a734..06f2c1ca71 100644 --- a/plugins/Referers/Controller.php +++ b/plugins/Referers/Controller.php @@ -8,6 +8,8 @@ * @category Piwik_Plugins * @package Piwik_Referers */ +use Piwik\Metrics; +use Piwik\Period_Range; use Piwik\Piwik; use Piwik\Common; @@ -49,7 +51,7 @@ class Piwik_Referers_Controller extends Piwik_Controller } // calculate evolution for visit metrics & distinct metrics - list($lastPeriodDate, $ignore) = Piwik_Period_Range::getLastDate(); + list($lastPeriodDate, $ignore) = Period_Range::getLastDate(); if ($lastPeriodDate !== false) { $date = Common::getRequestVar('date'); $period = Common::getRequestVar('period'); @@ -439,7 +441,7 @@ class Piwik_Referers_Controller extends Piwik_Controller $value = 0; $row = $dataTableReferersType->getRowFromLabel($columnId); if ($row !== false) { - $value = $row->getColumn(Piwik_Metrics::INDEX_NB_VISITS); + $value = $row->getColumn(Metrics::INDEX_NB_VISITS); } $return[$nameVar] = $value; } |