From de0f38f3f53653ff1dab25fadd36f748ed5a1ae9 Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 26 Jun 2018 15:17:50 +0800 Subject: [PATCH] * Adjust codes. --- module/block/control.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/block/control.php b/module/block/control.php index c6d52df56a..1b2882e97a 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -872,6 +872,10 @@ class block extends control { if(!empty($this->params->type) and preg_match('/[^a-zA-Z0-9_]/', $this->params->type)) die(); + $this->app->loadLang('task'); + $this->app->loadLang('story'); + $this->app->loadLang('bug'); + $status = isset($this->params->type) ? $this->params->type : ''; $orderBy = isset($this->params->orderBy) ? $this->params->orderBy : 'id_asc'; $num = isset($this->params->num) ? (int)$this->params->num : 0; @@ -977,10 +981,6 @@ class block extends control $projects[$project->id]->bugProgress = $project->totalBugs ? round(($project->totalBugs - $project->activeBugs) / $project->totalBugs, 2) * 100 : 0; } - $this->app->loadLang('task'); - $this->app->loadLang('story'); - $this->app->loadLang('bug'); - $this->view->projects = $projects; }