* fix a bug : display user link.
This commit is contained in:
@@ -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. */
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user