Formatting for KEYCLOAK-1113

This commit is contained in:
Stian Thorgersen 2015-04-01 10:52:15 +02:00
parent a2c4a1f760
commit 58068946e4
3 changed files with 43 additions and 44 deletions

View file

@ -214,8 +214,7 @@ public class FreeMarkerAccountProvider implements AccountProvider {
if (message == null)
return null;
if (messagesBundle.containsKey(message.getMessage())) {
return new MessageFormat(messagesBundle.getProperty(message.getMessage()), locale)
.format(message.getParameters());
return new MessageFormat(messagesBundle.getProperty(message.getMessage()), locale).format(message.getParameters());
} else {
return message.getMessage();
}