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/Dashboard')
-rw-r--r--plugins/Dashboard/Controller.php11
-rw-r--r--plugins/Dashboard/Dashboard.php3
2 files changed, 8 insertions, 6 deletions
diff --git a/plugins/Dashboard/Controller.php b/plugins/Dashboard/Controller.php
index f91718d097..0f6cca6d00 100644
--- a/plugins/Dashboard/Controller.php
+++ b/plugins/Dashboard/Controller.php
@@ -7,6 +7,7 @@
* @category Piwik_Plugins
* @package Piwik_Dashboard
*/
+use Piwik\DataTable\Renderer\Json;
use Piwik\Piwik;
use Piwik\Common;
@@ -66,7 +67,7 @@ class Piwik_Dashboard_Controller extends Piwik_Controller
{
$this->checkTokenInUrl();
- Piwik_DataTable_Renderer_Json::sendHeaderJSON();
+ Json::sendHeaderJSON();
echo Common::json_encode(Piwik_GetWidgetsList());
}
@@ -157,7 +158,7 @@ class Piwik_Dashboard_Controller extends Piwik_Controller
$this->checkTokenInUrl();
if (Piwik::isUserIsAnonymous()) {
- Piwik_DataTable_Renderer_Json::sendHeaderJSON();
+ Json::sendHeaderJSON();
echo '[]';
return;
@@ -166,7 +167,7 @@ class Piwik_Dashboard_Controller extends Piwik_Controller
$login = Piwik::getCurrentUserLogin();
$dashboards = $this->dashboard->getAllDashboards($login);
- Piwik_DataTable_Renderer_Json::sendHeaderJSON();
+ Json::sendHeaderJSON();
echo Common::json_encode($dashboards);
}
@@ -197,7 +198,7 @@ class Piwik_Dashboard_Controller extends Piwik_Controller
Common::prefixTable('user_dashboard'));
Piwik_Query($query, array($user, $nextId, $name, $layout));
- Piwik_DataTable_Renderer_Json::sendHeaderJSON();
+ Json::sendHeaderJSON();
echo Common::json_encode($nextId);
}
@@ -235,7 +236,7 @@ class Piwik_Dashboard_Controller extends Piwik_Controller
Common::prefixTable('user_dashboard'));
Piwik_Query($query, array($user, $nextId, $name, $layout));
- Piwik_DataTable_Renderer_Json::sendHeaderJSON();
+ Json::sendHeaderJSON();
echo Common::json_encode($nextId);
return;
}
diff --git a/plugins/Dashboard/Dashboard.php b/plugins/Dashboard/Dashboard.php
index 7548104be9..25fb766226 100644
--- a/plugins/Dashboard/Dashboard.php
+++ b/plugins/Dashboard/Dashboard.php
@@ -10,12 +10,13 @@
*/
use Piwik\Piwik;
use Piwik\Common;
+use Piwik\Plugin;
use Piwik\Site;
/**
* @package Piwik_Dashboard
*/
-class Piwik_Dashboard extends Piwik_Plugin
+class Piwik_Dashboard extends Plugin
{
/**
* @see Piwik_Plugin::getListHooksRegistered