#18894418 : add l=language_type to change language type with url query

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7462 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-05-17 08:58:35 +00:00
parent 632da1c5f8
commit 91da6eb39d

View file

@ -96,7 +96,10 @@
$lang_supported = $this->loadLangSelected();
// Retrieve language type set in user's cookie
if($_COOKIE['lang_type']) $this->lang_type = $_COOKIE['lang_type'];
if($this->get('l')) {
$_COOKIE['lang_type'] = $this->lang_type = $this->get('l');
}
else if($_COOKIE['lang_type']) $this->lang_type = $_COOKIE['lang_type'];
// If it's not exists, follow default language type set in db_info
if(!$this->lang_type) $this->lang_type = $this->db_info->lang_type;