diff --git a/module/doc/model.php b/module/doc/model.php index 3830a7dd1b..4c0bac4ca0 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -30,7 +30,7 @@ class docModel extends model if($type) { - $mainLib = in_array($type, array_keys($this->lang->doc->fastMenuList)) ? $this->lang->doc->fastMenuList[$type] : ''; + $fastLib = in_array($type, array_keys($this->lang->doc->fastMenuList)) ? $this->lang->doc->fastMenuList[$type] : $this->lang->doc->fast; if($libID) { @@ -46,7 +46,18 @@ class docModel extends model $type = $lib->type; } - $mainLib = isset($this->lang->doc->libTypeList[$type]) ? $this->lang->doc->libTypeList[$type] : $mainLib; + if(isset($this->lang->doc->libTypeList[$type])) + { + $mainLib = $this->lang->doc->libTypeList[$type]; + $selectHtml .= "
"; + $selectHtml .= "
"; + $selectHtml .= "" . $mainLib . " "; + $selectHtml .= "
'; + } $currentLib = 0; if(in_array($type, array_keys($this->lang->doc->libTypeList))) @@ -89,7 +100,7 @@ class docModel extends model } } - $actions = $this->setFastMenu($mainLib); + $actions = $this->setFastMenu($fastLib); $actions .= common::hasPriv('doc', 'createLib') ? html::a(helper::createLink('doc', 'createLib', "type={$type}&objectID={$currentLib}"), " " . $this->lang->doc->createLib, '', "class='btn btn-secondary iframe'") : ''; if($libID and common::hasPriv('doc', 'create')) $actions .= html::a(helper::createLink('doc', 'create', "libID=$libID"), " " . $this->lang->doc->create, '', "class='btn btn-primary'"); @@ -1475,21 +1486,16 @@ class docModel extends model return $title; } - public function setFastMenu($mainLib) + public function setFastMenu($fastLib) { $actions = ''; - $actions .= "" . $mainLib . " "; + $actions .= "" . $fastLib . " "; $actions .= "'; $actions .= '' . $this->lang->doc->search . '';