From ccfb1b9e4a1b1a9ca00c77deecb11f4381ba80e2 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 22 Oct 2018 16:12:03 +0800 Subject: [PATCH] * add create lib in index page. --- module/doc/control.php | 4 +++- module/doc/view/side.html.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index 1d84bc47cb..c07f637a93 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -42,7 +42,9 @@ class doc extends control $this->session->set('docList', $this->app->getURI(true)); $this->app->loadClass('pager', $static = true); $pager = new pager(0, 5, 1); - $this->lang->modulePageActions = $this->doc->setFastMenu($this->lang->doc->fast); + + $this->lang->modulePageActions = $this->doc->setFastMenu($this->lang->doc->fast); + $this->lang->modulePageActions .= common::hasPriv('doc', 'createLib') ? html::a(helper::createLink('doc', 'createLib'), " " . $this->lang->doc->createLib, '', "class='btn btn-secondary iframe'") : ''; $this->view->title = $this->lang->doc->common . $this->lang->colon . $this->lang->doc->index; $this->view->position[] = $this->lang->doc->index; diff --git a/module/doc/view/side.html.php b/module/doc/view/side.html.php index 66544928ec..e27f2f2045 100644 --- a/module/doc/view/side.html.php +++ b/module/doc/view/side.html.php @@ -11,7 +11,7 @@ if($this->methodName != 'browse') $browseType = ''; $moduleID = ''; } -if(!isset($type)) $type = 'product'; +if(empty($type)) $type = 'product'; ?>