mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Add option to force the language for a domain
This commit is contained in:
parent
48cd4a2794
commit
424242ff74
5 changed files with 44 additions and 26 deletions
|
|
@ -253,7 +253,11 @@ class Context
|
|||
$set_lang_cookie = false;
|
||||
self::set('lang_supported', $enabled_langs);
|
||||
|
||||
if($lang_type = self::get('l'))
|
||||
if (!empty($site_module_info->settings->language) && !empty($site_module_info->settings->force_language))
|
||||
{
|
||||
$lang_type = $site_module_info->settings->language;
|
||||
}
|
||||
elseif ($lang_type = self::get('l'))
|
||||
{
|
||||
if($_COOKIE['lang_type'] !== $lang_type)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue