* [refac task #124630]

This commit is contained in:
wangyidong
2024-08-02 15:27:55 +08:00
committed by 孙广明
parent 463e883755
commit 5386d797b3
3 changed files with 12 additions and 2 deletions
+4
View File
@@ -685,6 +685,10 @@ class user extends control
{
$viewType = $this->app->getViewType();
/* 如果禅道没有SN,则设置SN。*/
/* Set sn when zentao has not sn. */
if(empty($this->config->global->sn)) $this->loadModel('setting')->setSN();
/* 重新加载语言项。*/
/* Reload lang. */
if($viewType == 'json' && $this->get->lang && $this->get->lang != $this->app->getClientLang()) $this->userZen->reloadLang($this->get->lang);