fixes #2557 use pwg_get_cookie_var

-Update cookie to use pwg_lang to avoid conflicts with other potential apps.
-Add cookie path to the pwg_lang cookie to help with conflicts also.
-Be less restrictive in load_cookie_language function
-We can't use pwg_set_cookie because it is set in js not PHP so we force it to be called pwg_lang
This commit is contained in:
HWFord
2026-05-06 08:53:44 +02:00
parent 29c7957054
commit f12323d1c9
9 changed files with 20 additions and 19 deletions
+2 -1
View File
@@ -499,7 +499,8 @@ foreach (get_languages() as $language_code => $language_name)
$template->assign(array(
'language_options' => $language_options,
'current_language' => $user['language']
'current_language' => $user['language'],
'COOKIE_PATH' => cookie_path(),
));
//Get link to doc