From 4af4dbc22b545e142850a9b0f2bdf09b28db5a3f Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 30 Dec 2019 16:51:02 +0800 Subject: [PATCH] * set from cookie for doc-index page. --- module/doc/control.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/module/doc/control.php b/module/doc/control.php index bb56799fd7..e1c16906d9 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -37,6 +37,9 @@ class doc extends control */ public function index() { + $this->from = 'doc'; + setcookie('from', 'doc', $this->config->cookieLife, $this->config->webRoot, '', false, true); + $this->doc->setMenu(); $this->session->set('docList', $this->app->getURI(true)); @@ -78,7 +81,7 @@ class doc extends control public function browse($libID = 0, $browseType = 'all', $param = 0, $orderBy = 'id_desc', $from = 'doc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { $this->from = $from; - setcookie('from', $from, $this->config->cookieLife, $this->config->webRoot, '', false, true); + setcookie('from', $from, $this->config->cookieLife, $this->config->webRoot, '', false, true); $this->loadModel('search');