mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Fix #1722 incorrect language selection when domain setting conflicts with system setting
This commit is contained in:
parent
1ab02086bd
commit
865e83a46a
7 changed files with 12 additions and 5 deletions
|
|
@ -327,15 +327,19 @@ class Context
|
|||
|
||||
if(!$lang_type || !isset($enabled_langs[$lang_type]))
|
||||
{
|
||||
if($site_module_info->settings->language)
|
||||
if(isset($site_module_info->settings->language) && $site_module_info->settings->language !== 'default')
|
||||
{
|
||||
$lang_type = self::$_instance->db_info->lang_type = $site_module_info->settings->language;
|
||||
}
|
||||
else
|
||||
{
|
||||
$lang_type = self::$_instance->db_info->lang_type = self::$_instance->db_info->lang_type ?? 'ko';
|
||||
$lang_type = self::$_instance->db_info->lang_type = config('locale.default_lang');
|
||||
}
|
||||
}
|
||||
if(!$lang_type || !isset($enabled_langs[$lang_type]))
|
||||
{
|
||||
$lang_type = self::$_instance->db_info->lang_type = 'ko';
|
||||
}
|
||||
|
||||
$lang = Rhymix\Framework\Lang::getInstance($lang_type);
|
||||
$lang->loadDirectory(RX_BASEDIR . 'common/lang', 'common');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue