* Adjust codes.

This commit is contained in:
daitingting
2018-06-26 15:17:50 +08:00
parent e70b502673
commit de0f38f3f5
+4 -4
View File
@@ -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;
}