diff --git a/app/inc/i18n.php b/app/inc/i18n.php index 025efe7..587a704 100644 --- a/app/inc/i18n.php +++ b/app/inc/i18n.php @@ -21,7 +21,7 @@ asort($ALLOWED_LANGUAGES); if (isset($_POST['lang']) && is_string($_POST['lang']) && in_array($_POST['lang'], array_keys($ALLOWED_LANGUAGES)) ) { $mlocale = $_POST['lang'] ; - setcookie('lang' , $_POST['lang'], time()+60*5); + setcookie('lang' , $_POST['lang'], time()+60*5, '/'); } elseif ( isset($_COOKIE['lang']) && is_string($_COOKIE['lang']) && in_array($_COOKIE['lang'], array_keys($ALLOWED_LANGUAGES)) ) { $mlocale = $_COOKIE['lang'] ; } else {