* fix a bug : display user link.

This commit is contained in:
zhujinyong
2013-01-07 06:55:03 +00:00
parent 5176f5d77f
commit 8c7ae82f2e
2 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ $lang->action->label->testtask = '测试任务|testtask|view|caseID=%s';
$lang->action->label->todo = 'todo|todo|view|todoID=%s';
$lang->action->label->doclib = '文档库|doc|browse|libID=%s';
$lang->action->label->doc = '文档|doc|view|docID=%s';
$lang->action->label->user = '用户';
$lang->action->label->user = '用户|user|view|account=%s';
$lang->action->label->space = ' ';
/* Object type. */
+1 -7
View File
@@ -510,13 +510,7 @@ class actionModel extends model
$action->objectLabel = isset($this->lang->action->label->$objectType) ? $this->lang->action->label->$objectType : $objectType;
/* If action type is login or logout, needn't link. */
if($actionType == 'login' or $actionType == 'logout')
{
$action->objectLink = '';
$action->objectLabel = '';
continue;
}
elseif($actionType == 'svncommited')
if($actionType == 'svncommited')
{
$action->actor = isset($commiters[$action->actor]) ? $commiters[$action->actor] : $action->actor;
}