diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-19 07:10:29 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-19 07:10:29 +0400 |
commit | e9aae52fb3bc392663ee19aa2a5f702a3ed71fbf (patch) | |
tree | 0259bfcda90bf8cafd5e95383fff4111cf70ca96 /plugins/DBStats/Controller.php | |
parent | 253b165e621953efcb692f985036e217920ba696 (diff) |
make sure the ordering of reports is correct, pass an instance of a report to RenderReport
Diffstat (limited to 'plugins/DBStats/Controller.php')
-rw-r--r-- | plugins/DBStats/Controller.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/plugins/DBStats/Controller.php b/plugins/DBStats/Controller.php index 959a807ba6..de36313264 100644 --- a/plugins/DBStats/Controller.php +++ b/plugins/DBStats/Controller.php @@ -10,6 +10,11 @@ namespace Piwik\Plugins\DBStats; use Piwik\MetricsFormatter; 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; /** @@ -29,11 +34,11 @@ class Controller extends \Piwik\Plugin\ControllerAdmin $view = new View('@DBStats/index'); $this->setBasicVariablesView($view); - $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'); + $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()); list($siteCount, $userCount, $totalSpaceUsed) = API::getInstance()->getGeneralInformation(); |