// remove $noTabLink from compatibility tabs
This commit is contained in:
@@ -453,7 +453,6 @@ function runAdminTab($tab, $ajaxMode = false)
|
|||||||
// $tab = $_REQUEST['tab'];
|
// $tab = $_REQUEST['tab'];
|
||||||
if ($adminObj = checkingTab($tab))
|
if ($adminObj = checkingTab($tab))
|
||||||
{
|
{
|
||||||
$noTabLink = $adminObj->noTabLink;
|
|
||||||
// init is different for new tabs (AdminController) and old tabs (AdminTab)
|
// init is different for new tabs (AdminController) and old tabs (AdminTab)
|
||||||
if ($adminObj instanceof AdminController)
|
if ($adminObj instanceof AdminController)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -311,10 +311,6 @@ foreach ($tabs AS $t)
|
|||||||
<ul class="submenu">';
|
<ul class="submenu">';
|
||||||
$subTabs = Tab::getTabs(Context::getContext()->language->id, (int)$t['id_tab']);
|
$subTabs = Tab::getTabs(Context::getContext()->language->id, (int)$t['id_tab']);
|
||||||
|
|
||||||
// @todo need a better way than using noTabLink property, keeping the fact to avoid db modification
|
|
||||||
if (!in_array($t['class_name'], $noTabLink))
|
|
||||||
array_unshift($subTabs, $t);
|
|
||||||
|
|
||||||
foreach ($subTabs AS $t2)
|
foreach ($subTabs AS $t2)
|
||||||
if (checkTabRights($t2['id_tab']) === true AND (bool)$t2['active'])
|
if (checkTabRights($t2['id_tab']) === true AND (bool)$t2['active'])
|
||||||
echo '<li><a href="index.php?controller='.$t2['class_name'].'&token='.Tools::getAdminTokenLite($t2['class_name']).'">'.$t2['name'].'</a></li>';
|
echo '<li><a href="index.php?controller='.$t2['class_name'].'&token='.Tools::getAdminTokenLite($t2['class_name']).'">'.$t2['name'].'</a></li>';
|
||||||
|
|||||||
@@ -190,8 +190,6 @@ abstract class AdminTabCore
|
|||||||
public $ignore_sleep = false;
|
public $ignore_sleep = false;
|
||||||
|
|
||||||
public static $tabParenting = array(
|
public static $tabParenting = array(
|
||||||
// 'AdminProducts' => 'AdminCatalog',
|
|
||||||
// 'AdminCategories' => 'AdminCatalog',
|
|
||||||
'AdminCms' => 'AdminCmsContent',
|
'AdminCms' => 'AdminCmsContent',
|
||||||
'AdminCmsCategories' => 'AdminCmsContent',
|
'AdminCmsCategories' => 'AdminCmsContent',
|
||||||
'AdminOrdersStates' => 'AdminStatuses',
|
'AdminOrdersStates' => 'AdminStatuses',
|
||||||
@@ -202,9 +200,6 @@ abstract class AdminTabCore
|
|||||||
'AdminStatsTab' => 'AdminStats'
|
'AdminStatsTab' => 'AdminStats'
|
||||||
);
|
);
|
||||||
|
|
||||||
/** @var array noTabLink array of admintabs with no content */
|
|
||||||
public $noTabLink = array('AdminCatalog', 'AdminPriceRule', 'AdminTools', 'AdminStock', 'AdminAdmin');
|
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->context = Context::getContext();
|
$this->context = Context::getContext();
|
||||||
|
|||||||
Reference in New Issue
Block a user