From 178527100ce800c4a4e17e1a7a55d1136b4d2fcf Mon Sep 17 00:00:00 2001 From: wangyidong Date: Mon, 25 Feb 2019 11:26:51 +0800 Subject: [PATCH] * code for task #5271. --- module/my/control.php | 1 + module/project/model.php | 1 + 2 files changed, 2 insertions(+) diff --git a/module/my/control.php b/module/my/control.php index d04674d664..e8f4010aef 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -512,6 +512,7 @@ class my extends control { if($this->app->user->account == 'guest') die(js::alert('guest') . js::locate('back')); + $this->app->loadLang('user'); $user = $this->user->getById($this->app->user->account); $this->view->title = $this->lang->my->common . $this->lang->colon . $this->lang->my->profile; diff --git a/module/project/model.php b/module/project/model.php index 824cc4b198..614019023f 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -329,6 +329,7 @@ class projectModel extends model /* Add the creator to team. */ if($copyProjectID == '' or !$creatorExists) { + $this->app->loadLang('user'); $member = new stdclass(); $member->root = $projectID; $member->account = $this->app->user->account;