N°1445 - Regression: User cannot change language

SVN:trunk[5846]
This commit is contained in:
Eric Espié
2018-06-08 13:18:06 +00:00
parent 1c7fd57f2e
commit 36cfe9e5c2

View File

@@ -346,6 +346,7 @@ try
$oUser = UserRights::GetUserObject();
$oUser->Set('language', $sLangCode);
utils::PushArchiveMode(false);
$oUser->AllowWrite(true);
$oUser->DBUpdate();
utils::PopArchiveMode();
// Redirect to force a reload/display of the page with the new language