From f1706af0d213722df04f479e166e767ce5629572 Mon Sep 17 00:00:00 2001 From: Steven Rombauts Date: Thu, 3 Mar 2016 18:18:29 +0000 Subject: [PATCH] #303 - Set cookie path --- lib/plugins/system/languagefilter/languagefilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/system/languagefilter/languagefilter.php b/lib/plugins/system/languagefilter/languagefilter.php index 06687d81d6..235b82c86d 100644 --- a/lib/plugins/system/languagefilter/languagefilter.php +++ b/lib/plugins/system/languagefilter/languagefilter.php @@ -119,7 +119,7 @@ public function __construct(&$subject, $config) $cookie_domain = $conf->get('cookie_domain', ''); $cookie_path = $conf->get('cookie_path', JUri::base(true)); setcookie(JApplicationHelper::getHash('language'), $lang_code, $this->getLangCookieTime(), $cookie_path, $cookie_domain); - $app->input->cookie->set(JApplicationHelper::getHash('language'), $lang_code); + $app->input->cookie->set(JApplicationHelper::getHash('language'), $lang_code, 0, $cookie_path); // Set the request var. $app->input->set('language', $lang_code);