From 1d3c66547cbecdc4d40f0ac491efa34e48ba86b7 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Fri, 27 Nov 2020 16:28:13 +0800 Subject: [PATCH] * Fix project story lang. --- module/projectstory/control.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/module/projectstory/control.php b/module/projectstory/control.php index 8252070fef..a5db582954 100644 --- a/module/projectstory/control.php +++ b/module/projectstory/control.php @@ -46,6 +46,10 @@ class projectStory extends control $this->session->set('storyList', $this->app->getURI(true)); if(empty($productID)) $productID = key($this->products); + $this->lang->story->createRequirement = str_replace($this->lang->productURCommon, $this->lang->projectURCommon, $this->lang->story->createRequirement); + $this->lang->story->createStory = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->createStory); + $this->lang->story->noStory = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->noStory); + $this->lang->projectstory->menu->requirement['subModule'] = 'product'; $this->projectstory->setMenu($this->products, $productID, $branch); echo $this->fetch('product', 'browse', "productID=$productID&branch=$branch&browseType=$browseType¶m=$param&storyType=$storyType&orderBy=$orderBy&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID"); @@ -72,6 +76,11 @@ class projectStory extends control $this->lang->projectstory->menu->story['subModule'] = 'product'; $this->projectstory->setMenu($this->products, $productID, $branch); + + $this->lang->story->createRequirement = str_replace($this->lang->productURCommon, $this->lang->projectURCommon, $this->lang->story->createRequirement); + $this->lang->story->createStory = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->createStory); + $this->lang->story->noStory = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->noStory); + echo $this->fetch('product', 'browse', "productID=$productID&branch=$branch&browseType=$browseType¶m=$param&storyType=$storyType&orderBy=$orderBy&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID"); } @@ -91,6 +100,9 @@ class projectStory extends control if(empty($productID)) $productID = key($this->products); $this->lang->projectstory->menu->track['subModule'] = 'story'; $this->projectstory->setMenu($this->products, $productID, $branch); + + $this->lang->story->requirement = str_replace($this->lang->productURCommon, $this->lang->projectURCommon, $this->lang->story->requirement); + $this->lang->story->story = str_replace($this->lang->productSRCommon, $this->lang->projectSRCommon, $this->lang->story->story); echo $this->fetch('story', 'track', "productID=$productID&branch=$branch&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID"); } }