mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/14460] Use the selected language with AJAX requests as well
PHPBB3-14460
This commit is contained in:
@@ -183,11 +183,6 @@ class helper
|
||||
if (!empty($submit))
|
||||
{
|
||||
$lang = $this->phpbb_request->variable('language', '');
|
||||
|
||||
if (!empty($lang))
|
||||
{
|
||||
$this->language_cookie = $lang;
|
||||
}
|
||||
}
|
||||
|
||||
// Retrieve language from cookie
|
||||
@@ -195,10 +190,10 @@ class helper
|
||||
if (empty($lang) && !empty($lang_cookie))
|
||||
{
|
||||
$lang = $lang_cookie;
|
||||
$this->language_cookie = $lang;
|
||||
}
|
||||
|
||||
$lang = (!empty($lang) && strpos($lang, '/') === false) ? $lang : null;
|
||||
$this->language_cookie = $lang;
|
||||
|
||||
$this->render_language_select($lang);
|
||||
|
||||
|
Reference in New Issue
Block a user