From 7df5c2d4cc10109fa57fc5bdc16b11c121b9851f Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Thu, 7 Sep 2023 20:01:08 +0530 Subject: [PATCH] Remove tabs Search Engines and Referers from Stats tab --- controllers/admin/AdminReferrersController.php | 3 +++ controllers/admin/AdminSearchEnginesController.php | 3 +++ install/data/xml/tab.xml | 8 ++++---- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/controllers/admin/AdminReferrersController.php b/controllers/admin/AdminReferrersController.php index ee8da2c2b..bed1574e2 100644 --- a/controllers/admin/AdminReferrersController.php +++ b/controllers/admin/AdminReferrersController.php @@ -60,6 +60,9 @@ class AdminReferrersControllerCore extends AdminController { public function __construct() { + // redirect to Dashboard for stats related to Referers + Tools::redirectAdmin(Context::getContext()->link->getAdminLink('AdminDashboard')); + $this->bootstrap = true; $this->table = 'referrer'; $this->className = 'Referrer'; diff --git a/controllers/admin/AdminSearchEnginesController.php b/controllers/admin/AdminSearchEnginesController.php index 9716e9501..92d4c1929 100644 --- a/controllers/admin/AdminSearchEnginesController.php +++ b/controllers/admin/AdminSearchEnginesController.php @@ -31,6 +31,9 @@ class AdminSearchEnginesControllerCore extends AdminController { public function __construct() { + // redirect to Dashboard for stats related to Search Engines + Tools::redirectAdmin(Context::getContext()->link->getAdminLink('AdminDashboard')); + $this->bootstrap = true; $this->table = 'search_engine'; $this->className = 'SearchEngine'; diff --git a/install/data/xml/tab.xml b/install/data/xml/tab.xml index a20e6c70e..c7a7efae0 100644 --- a/install/data/xml/tab.xml +++ b/install/data/xml/tab.xml @@ -285,12 +285,12 @@ AdminStats - + + AdminWarehouses