diff --git a/plugins/system/languagefilter/languagefilter.php b/plugins/system/languagefilter/languagefilter.php index d9e4a72307eee..1885f15374b53 100644 --- a/plugins/system/languagefilter/languagefilter.php +++ b/plugins/system/languagefilter/languagefilter.php @@ -115,11 +115,11 @@ public function __construct(&$subject, $config) $lang_code = self::$sefs[$sef]->lang_code; // Create a cookie. - $conf = JFactory::getConfig(); - $cookie_domain = $conf->get('cookie_domain', ''); - $cookie_path = $conf->get('cookie_path', '/'); - setcookie(JApplication::getHash('language'), $lang_code, $this->getLangCookieTime(), $cookie_path, $cookie_domain); - $app->input->cookie->set(JApplication::getHash('language'), $lang_code); +// $conf = JFactory::getConfig(); +// $cookie_domain = $conf->get('cookie_domain', ''); +// $cookie_path = $conf->get('cookie_path', '/'); +// setcookie(JApplication::getHash('language'), $lang_code, $this->getLangCookieTime(), $cookie_path, $cookie_domain); +// $app->input->cookie->set(JApplication::getHash('language'), $lang_code); // Set the request var. $app->input->set('language', $lang_code); @@ -464,10 +464,10 @@ public function onUserAfterSave($user, $isnew, $success, $msg) self::$tag = $lang_code; // Create a cookie. - $conf = JFactory::getConfig(); - $cookie_domain = $conf->get('cookie_domain', ''); - $cookie_path = $conf->get('cookie_path', '/'); - setcookie(JApplication::getHash('language'), $lang_code, $this->getLangCookieTime(), $cookie_path, $cookie_domain); +// $conf = JFactory::getConfig(); +// $cookie_domain = $conf->get('cookie_domain', ''); +// $cookie_path = $conf->get('cookie_path', '/'); +// setcookie(JApplication::getHash('language'), $lang_code, $this->getLangCookieTime(), $cookie_path, $cookie_domain); } } } @@ -516,10 +516,10 @@ public function onUserLogin($user, $options = array()) self::$tag = $lang_code; // Create a cookie. - $conf = JFactory::getConfig(); - $cookie_domain = $conf->get('cookie_domain', ''); - $cookie_path = $conf->get('cookie_path', '/'); - setcookie(JApplication::getHash('language'), $lang_code, $this->getLangCookieTime(), $cookie_path, $cookie_domain); +// $conf = JFactory::getConfig(); +// $cookie_domain = $conf->get('cookie_domain', ''); +// $cookie_path = $conf->get('cookie_path', '/'); +// setcookie(JApplication::getHash('language'), $lang_code, $this->getLangCookieTime(), $cookie_path, $cookie_domain); // Change the language code. JFactory::getLanguage()->setLanguage($lang_code);