- Remove viewMenu of product.

This commit is contained in:
zhujinyong
2021-03-17 10:31:26 +08:00
parent 28df323cc3
commit c370c3ba54
3 changed files with 8 additions and 18 deletions

View File

@@ -69,7 +69,6 @@ class tree extends control
/* Set menu.*/
$moduleIndex = array_search('tree', $this->lang->noMenuModule);
if($moduleIndex !== false) unset($this->lang->noMenuModule[$moduleIndex]);
$this->lang->product->menu = $this->lang->product->viewMenu;
$this->lang->product->switcherMenu = $this->loadModel('product')->getSwitcher($rootID, 'story');
$this->lang->product->mainMenuAction = $this->product->getProductMainAction();
@@ -193,9 +192,8 @@ class tree extends control
{
$productID = $lib->product;
$this->lang->noMenuModule[] = 'tree';
unset($this->lang->product->viewMenu->set['subModule']);
unset($this->lang->product->menu->set['subModule']);
$this->lang->navGroup->tree = 'product';
$this->lang->product->menu = $this->lang->product->viewMenu;
$this->lang->product->switcherMenu = $this->loadModel('product')->getSwitcher($productID, 'story');
$this->lang->product->mainMenuAction = $this->product->getProductMainAction();