Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit a045ce3

Browse files
committed
Reload messages when switching language
1 parent 951e357 commit a045ce3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/plugins/core.conf/class.AbstractConfDriver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,10 @@ public function switchAction($action, $httpVars, $fileVars)
831831
$userObject->recomputeMergedRole();
832832
if ($action == "custom_data_edit") {
833833
AuthService::updateUser($userObject);
834+
if(isSet($data["lang"]) && $data["lang"] !== ConfService::getLanguage()){
835+
ConfService::setLanguage($data["lang"]);
836+
$mess = ConfService::getMessages(true);
837+
}
834838
}
835839
}
836840

0 commit comments

Comments
 (0)