* Optimize code.
This commit is contained in:
@@ -376,10 +376,8 @@ class tree extends control
|
||||
{
|
||||
$this->view->optionMenu = $this->tree->getOptionMenu($module->root, $module->type, 0, $module->branch);
|
||||
}
|
||||
if($type == 'doc')
|
||||
{
|
||||
$this->view->libs = $this->loadModel('doc')->getLibs('all', $extra = 'withObject', '', 0, 'book');
|
||||
}
|
||||
|
||||
if($type == 'doc') $this->view->libs = $this->loadModel('doc')->getLibs('all', $extra = 'withObject', '', 0, 'book');
|
||||
|
||||
$this->view->module = $module;
|
||||
$this->view->type = $type;
|
||||
|
||||
Reference in New Issue
Block a user