1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/12254] Use a cookie instead of SID to store language selection

PHPBB3-12254
This commit is contained in:
Matt Friedman
2014-05-02 12:08:35 -07:00
parent 42c60c6a9f
commit 78325736b1
4 changed files with 13 additions and 10 deletions

View File

@@ -10,8 +10,8 @@
*/
function change_language(lang_iso)
{
document.cookie = '{COOKIE_NAME}_lang=' + lang_iso + '; path={COOKIE_PATH}';
document.forms['register'].change_lang.value = lang_iso;
document.forms['register'].language.value = lang_iso;
document.forms['register'].submit();
}

View File

@@ -7,8 +7,8 @@
*/
function change_language(lang_iso)
{
document.cookie = '{COOKIE_NAME}_lang=' + lang_iso + '; path={COOKIE_PATH}';
document.forms['register'].change_lang.value = lang_iso;
document.forms['register'].language.value = lang_iso;
document.forms['register'].submit.click();
}
// ]]>