#18897956 : set cookie for language url query

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7476 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-05-19 06:57:31 +00:00
parent ef92ef965d
commit 658d12e952

View file

@ -94,10 +94,13 @@
// Load Language File
$lang_supported = $this->loadLangSelected();
// Retrieve language type set in user's cookie
if($this->get('l')) {
$_COOKIE['lang_type'] = $this->lang_type = $this->get('l');
$this->lang_type = $this->get('l');
if($_COOKIE['lang_type'] != $this->lang_type)
{
setcookie('lang_type', $this->lang_type);
}
}
else if($_COOKIE['lang_type']) $this->lang_type = $_COOKIE['lang_type'];