summaryrefslogtreecommitdiffstats
path: root/inc/dictionary.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/dictionary.inc.php')
-rw-r--r--inc/dictionary.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/dictionary.inc.php b/inc/dictionary.inc.php
index 935d1f4e..b69007a6 100644
--- a/inc/dictionary.inc.php
+++ b/inc/dictionary.inc.php
@@ -28,7 +28,8 @@ class Dictionary
//Changes the language in case there is a request to
$lang = Request::get('lang');
if ($lang !== false && in_array($lang, self::$languages)) {
- setcookie('lang', $lang, time() + 60 * 60 * 24 * 30 * 12);
+ Util::clearCookie('lang');
+ setcookie('lang', $lang, time() + 86400 * 30 * 12);
$url = Request::get('url');
if ($url === false && isset($_SERVER['HTTP_REFERER'])) {
$url = $_SERVER['HTTP_REFERER'];