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:
authordiosmosis <benaka@piwik.pro>2014-11-08 02:46:58 +0300
committerdiosmosis <benaka@piwik.pro>2014-11-08 03:00:47 +0300
commit68d77438edb1a492c9ef7943c16ac9874175b362 (patch)
treef5904b96eeefa21836b4033df180f5cdace544fb /plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php
parent949adebcc57524bd49c61eba6fda670c46654630 (diff)
Converted most other processed metric calculation to use ProcessedMetric class.
Diffstat (limited to 'plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php')
-rw-r--r--plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php b/plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php
index 74cf975a4d..0c42eafab0 100644
--- a/plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php
+++ b/plugins/VisitorInterest/Reports/GetNumberOfVisitsByVisitCount.php
@@ -12,6 +12,7 @@ use Piwik\Metrics;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\VisitorInterest\Columns\VisitsbyVisitNumber;
+use Piwik\Plugins\VisitorInterest\Metrics\VisitsPercent;
class GetNumberOfVisitsByVisitCount extends Base
{
@@ -23,7 +24,9 @@ class GetNumberOfVisitsByVisitCount extends Base
$this->documentation = Piwik::translate('VisitorInterest_WidgetVisitsByNumDocumentation')
. '<br />' . Piwik::translate('General_ChangeTagCloudView');
$this->metrics = array('nb_visits', 'nb_visits_percentage');
- $this->processedMetrics = false;
+ $this->processedMetrics = array(
+ new VisitsPercent()
+ );
$this->constantRowsCount = true;
$this->order = 25;
$this->widgetTitle = 'VisitorInterest_visitsByVisitCount';