diff --git a/module/repo/control.php b/module/repo/control.php index 89cbad5c30..60695dbb1a 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -170,7 +170,6 @@ class repo extends control $this->view->users = $this->loadModel('user')->getPairs('noletter|noempty|nodeleted'); $this->view->credentialsList = $this->loadModel('cicredentials')->listForSelection("type='sshKey' or type='account'"); - $this->view->tips = str_replace("{user}",exec('whoami'), $this->lang->repo->tips); $this->view->title = $this->lang->ci->repo . $this->lang->colon . $this->lang->ci->create; $this->view->position[] = $this->lang->ci->common; @@ -211,8 +210,6 @@ class repo extends control $this->view->groups = $this->loadModel('group')->getPairs(); $this->view->users = $this->loadModel('user')->getPairs('noletter|noempty|nodeleted'); - $this->view->tips = str_replace("{user}", exec('whoami'), $this->lang->repo->tips); - $this->view->title = $this->lang->ci->repo . $this->lang->colon . $this->lang->ci->edit; $this->view->position[] = $this->lang->ci->common; $this->view->position[] = html::a(inlink('maintain'), $this->lang->ci->repo); diff --git a/module/repo/lang/zh-cn.php b/module/repo/lang/zh-cn.php index 201fedb793..95e6daeca9 100644 --- a/module/repo/lang/zh-cn.php +++ b/module/repo/lang/zh-cn.php @@ -138,7 +138,7 @@ $lang->repo->error->output = "执行命令:%s\n错误结果(%s): %s\n $lang->repo->error->clientVersion = "客户端版本过低,请升级或更换SVN客户端"; $lang->repo->error->encoding = "编码可能错误,请更换编码重试。"; -$lang->repo->tips = '请参照这里,设置版本库定时同步。'; +$lang->repo->tips = '请参照这里,设置版本库定时同步。'; $lang->repo->example = new stdclass(); $lang->repo->example->client = "例如:/usr/bin/svn, C:\subversion\svn.exe, /usr/bin/git"; $lang->repo->example->path = "例如:SVN: http://example.googlecode.com/svn/, GIT: /homt/test";