Commit 303f5c54 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Activate user language pref immediately on login


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent d3e33769
......@@ -1136,6 +1136,12 @@ class LiveUser extends User {
if (empty($user->id)) $this->commit();
$this->activityprefs = load_activity_preferences($user->id);
$this->accountprefs = load_account_preferences($user->id);
// Set language for the current request
if (!empty($this->accountprefs['lang'])) {
current_language($this->accountprefs['lang']);
}
$this->reset_institutions();
$this->reset_grouproles();
$this->load_views();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment