Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
#303 - Set cookie path
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Rombauts committed Mar 3, 2016
1 parent 05f224f commit f1706af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/system/languagefilter/languagefilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f1706af

Please sign in to comment.