mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
update user lang too
git-svn-id: file:///svn/phpbb/trunk@9269 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -198,6 +198,12 @@ class phpbb_user extends phpbb_session
|
|||||||
$this->lang_name = $lang_name;
|
$this->lang_name = $lang_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set data language in case we have a user where this is not set
|
||||||
|
if (empty($this->data['user_lang']))
|
||||||
|
{
|
||||||
|
$this->data['user_lang'] = $this->lang_name;
|
||||||
|
}
|
||||||
|
|
||||||
// We include common language file here to not load it every time a custom language file is included
|
// We include common language file here to not load it every time a custom language file is included
|
||||||
$lang = &$this->lang;
|
$lang = &$this->lang;
|
||||||
|
|
||||||
@@ -344,7 +350,7 @@ class phpbb_user extends phpbb_session
|
|||||||
'theme_storedb' => 1
|
'theme_storedb' => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
phpbb::$db->sql_handle_data('UPDATE', STYLES_THEME_TABLE, $sql_ary, 'theme_id = ' . $this->theme['theme_id']);
|
phpbb::$db->sql_query('UPDATE ' . STYLES_THEME_TABLE . ' SET ' . phpbb::$db->sql_build_array('UPDATE', $sql_ary) . ' WHERE theme_id = ' . $this->theme['theme_id']);
|
||||||
unset($sql_ary);
|
unset($sql_ary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user