From 5f888f7b3fc0d7331abe6007352408048cb62fba Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Fri, 2 Apr 2021 09:15:01 +0800 Subject: [PATCH] * Delete unused code. --- framework/router.class.php | 5 ----- module/project/model.php | 1 - 2 files changed, 6 deletions(-) diff --git a/framework/router.class.php b/framework/router.class.php index e665fb722d..e6711daba1 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -206,12 +206,7 @@ class router extends baseRouter if($hourKey == STORYPOINT_KEY) $config->hourUnit = 'sp'; if($hourKey == FUNCTIONPOINT_KEY) $config->hourUnit = 'fp'; - $model = new stdclass(); - $model->model = 'scrum'; - //if($this->session->PRJ) $model = $this->dbh->query('SELECT model FROM' . TABLE_PROJECT . "WHERE id = {$this->session->PRJ}")->fetch(); - $iterationKey = $projectKey; - if(isset($model->model) && $model->model == 'waterfall') $projectKey = STAGE_KEY; /* Set productCommon, projectCommon and hourCommon. Default english lang. */ $lang->productCommon = $this->config->productCommonList[$this->clientLang][PRODUCT_KEY]; diff --git a/module/project/model.php b/module/project/model.php index bd96d7f8ff..832bfbd580 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -1686,7 +1686,6 @@ class projectModel extends model if($project->model == 'waterfall') { $this->loadModel('execution'); - $lang->scrum->menu->execution['link'] = str_replace($lang->executionCommon, $lang->project->stage, $lang->scrum->menu->execution['link']); $lang->execution->create = str_replace($lang->executionCommon, $lang->project->stage, $lang->execution->create); $lang->execution->name = str_replace($lang->executionCommon, $lang->project->stage, $lang->execution->name); $lang->execution->status = str_replace($lang->executionCommon, $lang->project->stage, $lang->execution->status);