diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-12 18:21:34 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-12 18:21:34 -0700 |
commit | b13328140fbe4134699c837adc6f980aac4b1b96 (patch) | |
tree | 2fd2f942da0675f9e6a43a1fad07fa7f0b0bdee1 /Zotlabs/Web/WebServer.php | |
parent | 3be0b0925cc2b6f95fc72d81d4c3199138843732 (diff) | |
download | volse-hubzilla-b13328140fbe4134699c837adc6f980aac4b1b96.tar.gz volse-hubzilla-b13328140fbe4134699c837adc6f980aac4b1b96.tar.bz2 volse-hubzilla-b13328140fbe4134699c837adc6f980aac4b1b96.zip |
accept system_language through either get or post
Diffstat (limited to 'Zotlabs/Web/WebServer.php')
-rw-r--r-- | Zotlabs/Web/WebServer.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Web/WebServer.php b/Zotlabs/Web/WebServer.php index 5183fb2b0..1c3ea29d0 100644 --- a/Zotlabs/Web/WebServer.php +++ b/Zotlabs/Web/WebServer.php @@ -44,9 +44,9 @@ class WebServer { * We have to do it here because the session was just now opened. */ - if(array_key_exists('system_language',$_POST)) { - if(strlen($_POST['system_language'])) - $_SESSION['language'] = $_POST['system_language']; + if(array_key_exists('system_language',$_REQUEST)) { + if(strlen($_REQUEST['system_language'])) + $_SESSION['language'] = $_REQUEST['system_language']; else unset($_SESSION['language']); } |