Permalink
Browse files

fix i18n languages

  • Loading branch information...
1 parent c245fda commit d298520cd6a211d94959c1ce05de4eedc7a753f4 @cdujeu cdujeu committed Jun 21, 2016
Showing with 1 addition and 2 deletions.
  1. +1 −2 core/src/plugins/gui.ajax/class.AJXP_ClientDriver.php
@@ -229,12 +229,11 @@ public function switchAction(ServerRequestInterface $requestInterface, ResponseI
case "get_i18n_messages":
$refresh = false;
+ $httpVars = $requestInterface->getParsedBody();
if (isSet($httpVars["lang"])) {
LocaleService::setLanguage($httpVars["lang"]);
$refresh = true;
}
- //HTMLWriter::charsetHeader("application/json");
- //echo json_encode(LocaleService::getMessages($refresh));
$responseInterface = new JsonResponse(LocaleService::getMessages($refresh));
break;

0 comments on commit d298520

Please sign in to comment.