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/DBStats/Controller.php')
-rw-r--r--plugins/DBStats/Controller.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/DBStats/Controller.php b/plugins/DBStats/Controller.php
index 51f2a00ae6..941b095f81 100644
--- a/plugins/DBStats/Controller.php
+++ b/plugins/DBStats/Controller.php
@@ -6,18 +6,19 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @category Piwik_Plugins
- * @package Piwik_DBStats
+ * @package DBStats
*/
-use Piwik\Controller\Admin;
+namespace Piwik\Plugins\DBStats;
+
use Piwik\Piwik;
+use Piwik\Plugins\DBStats\API;
use Piwik\ViewDataTable;
use Piwik\View;
/**
- *
- * @package Piwik_DBStats
+ * @package DBStats
*/
-class Piwik_DBStats_Controller extends Admin
+class Controller extends \Piwik\Controller\Admin
{
/**
* Returns the index for this plugin. Shows every other report defined by this plugin,
@@ -38,7 +39,7 @@ class Piwik_DBStats_Controller extends Admin
$view->reportDataSummary = $this->getReportDataSummary(true);
$view->adminDataSummary = $this->getAdminDataSummary(true);
- list($siteCount, $userCount, $totalSpaceUsed) = Piwik_DBStats_API::getInstance()->getGeneralInformation();
+ list($siteCount, $userCount, $totalSpaceUsed) = API::getInstance()->getGeneralInformation();
$view->siteCount = Piwik::getPrettyNumber($siteCount);
$view->userCount = Piwik::getPrettyNumber($userCount);
$view->totalSpaceUsed = Piwik::getPrettySizeFromBytes($totalSpaceUsed);