mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 17:32:15 +09:00
#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:
parent
ef92ef965d
commit
658d12e952
1 changed files with 5 additions and 2 deletions
|
|
@ -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'];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue