* Optimize code.

This commit is contained in:
mayue
2022-08-23 11:01:31 +08:00
parent 2f2f0e6542
commit 6336e232fb
2 changed files with 5 additions and 7 deletions
+2 -4
View File
@@ -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;