Skip to content

Commit

Permalink
SAK-32134 Locale selection at gateway sites is wrong. It must look fo…
Browse files Browse the repository at this point in the history
…r the site's language/platform (sakaiproject#3839)
  • Loading branch information
sinmsinm authored and juanjmerono committed Feb 3, 2017
1 parent 5871794 commit 2ddbcb4
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,8 @@ public void setSessionManager(SessionManager sessionmanager) {
}

public Object getObject() {
String userid = sessionmanager.getCurrentSessionUserId();
Locale loc = Locale.getDefault();
if (userid != null) {
ResourceLoader rl = new ResourceLoader();
loc = rl.getLocale();
}
return loc;
ResourceLoader rl = new ResourceLoader();
return rl.getLocale();
}

public Class getObjectType() {
Expand Down

0 comments on commit 2ddbcb4

Please sign in to comment.