From 91da6eb39d3787a36a289155ee95543e12aaf8cc Mon Sep 17 00:00:00 2001 From: haneul Date: Mon, 17 May 2010 08:58:35 +0000 Subject: [PATCH] #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 --- classes/context/Context.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/context/Context.class.php b/classes/context/Context.class.php index c6c8728d5..665df37da 100644 --- a/classes/context/Context.class.php +++ b/classes/context/Context.class.php @@ -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;