Improve time zone selection

This commit is contained in:
Kijin Sung 2016-02-03 17:54:47 +09:00
parent 3c8b586fac
commit e971e7a725
4 changed files with 51 additions and 13 deletions

View file

@ -289,11 +289,11 @@ class Context
$this->lang_type = $this->db_info->lang_type;
}
if(!$this->lang_type || !in_array($this->lang_type, $enabled_langs))
if(!$this->lang_type || !isset($enabled_langs[$this->lang_type]))
{
$this->lang_type = 'ko';
}
self::setLangType($this->lang_type);
$this->lang = Rhymix\Framework\Lang::getInstance($this->lang_type);