diff options
| author | Matt Friedman <maf675@gmail.com> | 2014-05-02 12:08:35 -0700 |
|---|---|---|
| committer | Matt Friedman <maf675@gmail.com> | 2014-05-02 12:08:35 -0700 |
| commit | 78325736b1560c17713b5207c53fe0af582fab0b (patch) | |
| tree | 63fbd350476aaff4e75ff395570dc2ea9cd56068 /phpBB/styles | |
| parent | 42c60c6a9fcc7a4e6124257c3547eae0d34998ba (diff) | |
| download | forums-78325736b1560c17713b5207c53fe0af582fab0b.tar forums-78325736b1560c17713b5207c53fe0af582fab0b.tar.gz forums-78325736b1560c17713b5207c53fe0af582fab0b.tar.bz2 forums-78325736b1560c17713b5207c53fe0af582fab0b.tar.xz forums-78325736b1560c17713b5207c53fe0af582fab0b.zip | |
[ticket/12254] Use a cookie instead of SID to store language selection
PHPBB3-12254
Diffstat (limited to 'phpBB/styles')
| -rw-r--r-- | phpBB/styles/prosilver/template/ucp_agreement.html | 2 | ||||
| -rw-r--r-- | phpBB/styles/prosilver/template/ucp_register.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/styles/prosilver/template/ucp_agreement.html b/phpBB/styles/prosilver/template/ucp_agreement.html index 458f098b32..73db520a8e 100644 --- a/phpBB/styles/prosilver/template/ucp_agreement.html +++ b/phpBB/styles/prosilver/template/ucp_agreement.html @@ -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(); } diff --git a/phpBB/styles/prosilver/template/ucp_register.html b/phpBB/styles/prosilver/template/ucp_register.html index 0fe550a865..b27003faab 100644 --- a/phpBB/styles/prosilver/template/ucp_register.html +++ b/phpBB/styles/prosilver/template/ucp_register.html @@ -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(); } // ]]> |
