* Revert commit.
This commit is contained in:
@@ -135,7 +135,6 @@ class group extends control
|
||||
|
||||
/* Get the group data by id and primary menus. */
|
||||
$group = $this->group->getByID($groupID);
|
||||
$menus = $this->group->getPrimaryMenus();
|
||||
|
||||
$this->view->title = $this->lang->company->common . $this->lang->colon . $group->name . $this->lang->colon . $this->lang->group->manageView;
|
||||
$this->view->position[] = $group->name;
|
||||
@@ -148,7 +147,6 @@ class group extends control
|
||||
$menugroup = array();
|
||||
foreach($this->lang->menugroup as $moduleName => $groupName) $menugroup[$groupName][$moduleName] = $moduleName;
|
||||
$this->view->menugroup = $menugroup;
|
||||
$this->view->menus = $menus;
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -463,16 +463,4 @@ class groupModel extends model
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get primary menus.
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getPrimaryMenus()
|
||||
{
|
||||
$menus = clone $this->lang->menu;
|
||||
return $menus;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<tr>
|
||||
<th class='text-bottom thWidth'><?php echo $lang->group->viewList;?></th>
|
||||
<td class='text-bottom'>
|
||||
<?php foreach($menus as $menuKey => $menu):?>
|
||||
<?php foreach($lang->menu as $menuKey => $menu):?>
|
||||
<?php if(!is_string($menu)) continue;?>
|
||||
<?php list($moduleName, $module) = explode('|', $menu);?>
|
||||
<?php if($module == 'my') continue;?>
|
||||
|
||||
Reference in New Issue
Block a user