diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-11-28 11:55:12 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-11-28 11:55:12 +0400 |
commit | c31605d68dbf1114737f9b02bede8334a021bf8b (patch) | |
tree | f1aa61905ba56e392f6d01045027726fccf9f51a | |
parent | ce2d7d45d0ede5ca89f2021ba1c7d348664abdb0 (diff) |
reportsByDimension constructor requires an "Id" string used to differentiate reportsByDimension objects
-rw-r--r-- | plugins/Goals/Controller.php | 2 | ||||
-rw-r--r-- | plugins/Referrers/Controller.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Goals/Controller.php b/plugins/Goals/Controller.php index 8792b83354..7b05ef4932 100644 --- a/plugins/Goals/Controller.php +++ b/plugins/Goals/Controller.php @@ -409,7 +409,7 @@ class Controller extends \Piwik\Plugin\Controller { $preloadAbandonedCart = $cartNbConversions !== false && $conversions == 0; - $goalReportsByDimension = new ReportsByDimension(); + $goalReportsByDimension = new ReportsByDimension('Goals'); // add ecommerce reports $ecommerceCustomParams = array(); diff --git a/plugins/Referrers/Controller.php b/plugins/Referrers/Controller.php index efd24036f1..e5f1cf6e27 100644 --- a/plugins/Referrers/Controller.php +++ b/plugins/Referrers/Controller.php @@ -98,7 +98,7 @@ class Controller extends \Piwik\Plugin\Controller * & allows the user to switch between them. * * @param int $visits The number of visits for this period & site. If <= 0, the - * reports are not shown, since they will have no data. + * reports are not shown, since they will have no data.getReferrersReportsByDimensionView * @return string The report viewer HTML. */ private function getReferrersReportsByDimensionView($visits) @@ -107,7 +107,7 @@ class Controller extends \Piwik\Plugin\Controller // only display the reports by dimension view if there are visits if ($visits > 0) { - $referrersReportsByDimension = new View\ReportsByDimension(); + $referrersReportsByDimension = new View\ReportsByDimension('Referrers'); $referrersReportsByDimension->addReport( 'Referrers_ViewAllReferrers', 'Referrers_WidgetGetAll', 'Referrers.getAll'); |