* Add test case.

This commit is contained in:
caoyanyi
2023-02-28 14:05:00 +08:00
parent ac2891ac41
commit c4d19c3735
2 changed files with 29 additions and 0 deletions
+4
View File
@@ -512,6 +512,10 @@ class devModel extends model
*/
public function loadDefaultLang($language = 'zh-cn', $module = 'common')
{
if(empty($language)) $language = 'zh-cn';
if(empty($module)) $module = 'common';
if($module != 'common' and !isset($this->defaultLang)) return null;
$clientLang = $this->app->clientLang;
if($language and $language != $clientLang) $this->app->clientLang = $language;