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:
Diffstat (limited to 'plugins/Insights/API.php')
-rw-r--r--plugins/Insights/API.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Insights/API.php b/plugins/Insights/API.php
index 20cb649649..4b3228ffc2 100644
--- a/plugins/Insights/API.php
+++ b/plugins/Insights/API.php
@@ -39,11 +39,9 @@ class API extends \Piwik\Plugin\API
*/
private $model;
- protected function __construct()
+ public function __construct(Model $model)
{
- parent::__construct();
-
- $this->model = new Model();
+ $this->model = $model;
}
private function getOverviewReports()