diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-05-07 04:55:23 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-05-07 04:55:23 +0300 |
commit | 12868d4bd0277305583b15c0c1c078437bb49056 (patch) | |
tree | 1e34d7e59968526425c3314a7a6ef0966aa90e71 /plugins/DBStats/Controller.php | |
parent | c6ed2a5a74fd1fa8aeec23b6f4c81666a8647c8b (diff) |
refs #7821 do not instantiate reports directly
Diffstat (limited to 'plugins/DBStats/Controller.php')
-rw-r--r-- | plugins/DBStats/Controller.php | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/plugins/DBStats/Controller.php b/plugins/DBStats/Controller.php index 1e8aad1311..8db31cf4df 100644 --- a/plugins/DBStats/Controller.php +++ b/plugins/DBStats/Controller.php @@ -10,11 +10,6 @@ namespace Piwik\Plugins\DBStats; use Piwik\Metrics\Formatter; use Piwik\Piwik; -use Piwik\Plugins\DBStats\Reports\GetAdminDataSummary; -use Piwik\Plugins\DBStats\Reports\GetDatabaseUsageSummary; -use Piwik\Plugins\DBStats\Reports\GetMetricDataSummary; -use Piwik\Plugins\DBStats\Reports\GetReportDataSummary; -use Piwik\Plugins\DBStats\Reports\GetTrackerDataSummary; use Piwik\View; /** @@ -34,11 +29,11 @@ class Controller extends \Piwik\Plugin\ControllerAdmin $view = new View('@DBStats/index'); $this->setBasicVariablesView($view); - $view->databaseUsageSummary = $this->renderReport(new GetDatabaseUsageSummary()); - $view->trackerDataSummary = $this->renderReport(new GetTrackerDataSummary()); - $view->metricDataSummary = $this->renderReport(new GetMetricDataSummary()); - $view->reportDataSummary = $this->renderReport(new GetReportDataSummary()); - $view->adminDataSummary = $this->renderReport(new GetAdminDataSummary()); + $view->databaseUsageSummary = $this->renderReport('getDatabaseUsageSummary'); + $view->trackerDataSummary = $this->renderReport('getTrackerDataSummary'); + $view->metricDataSummary = $this->renderReport('getMetricDataSummary'); + $view->reportDataSummary = $this->renderReport('getReportDataSummary'); + $view->adminDataSummary = $this->renderReport('getAdminDataSummary'); list($siteCount, $userCount, $totalSpaceUsed) = API::getInstance()->getGeneralInformation(); |