From 55c7d3ddb17e3fac15c24036f1adaaf7fd36d17d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1ndly=20Gerg=C5=91?= Date: Sat, 10 Aug 2019 15:05:34 +0300 Subject: [PATCH] Fixed cookie storage --- config/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.php b/config/config.php index 4fc3c1e..24f4a75 100644 --- a/config/config.php +++ b/config/config.php @@ -47,7 +47,7 @@ mb_internal_encoding("UTF-8"); $langstr=""; if(isset($_GET['setlang'])){ $langstr=$_GET['setlang']; - setcookie("language", $langstr, 90*86000); + setcookie("language", $langstr, time() + 90*86000); } else if(isset($_COOKIE['language'])){ $langstr=$_COOKIE['language'];