From 917e316962f31b58b777979a0c55c045779eb07d Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Mon, 7 Dec 2020 15:21:38 +0800 Subject: [PATCH] * Fix bug. --- module/repo/control.php | 1 - module/story/control.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/module/repo/control.php b/module/repo/control.php index 2d28243317..bfe3a04560 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -93,7 +93,6 @@ class repo extends control $this->view->programs = $this->loadModel('program')->getPRJPairs(); $this->view->title = $this->lang->repo->common . $this->lang->colon . $this->lang->repo->create; - $this->view->position[] = html::a(inlink('maintain'), $this->lang->repo->common); $this->view->position[] = $this->lang->repo->create; $this->display(); diff --git a/module/story/control.php b/module/story/control.php index 4bc3a0a4fa..d7f60a42a6 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1329,8 +1329,8 @@ class story extends control /* Set menu. The projectstory module does not execute. */ if($this->app->rawModule == 'story') { + $products = $this->product->getPairs(); $this->lang->product->menu = $this->lang->product->viewMenu; - $products = $this->product->getPairs(); $productID = $this->product->saveState($productID, $products); $this->lang->product->switcherMenu = $this->product->getSwitcher($productID, '', $branch); $this->product->setMenu($products, $productID, $branch); @@ -1342,7 +1342,7 @@ class story extends control $tracks = $this->story->getTracks($productID, $branch, $pager); $this->view->title = $this->lang->story->track; - $this->view->posision[] = $this->lang->story->track; + $this->view->position[] = $this->lang->story->track; $this->view->tracks = $tracks; $this->view->pager = $pager;