mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 05:42:13 +09:00
#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:
parent
632da1c5f8
commit
91da6eb39d
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue