Fixed cookie storage

This commit is contained in:
Fándly Gergő 2019-08-10 15:05:34 +03:00
parent 4b62592975
commit 55c7d3ddb1

View File

@ -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'];