aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-08-20 22:17:04 +0300
committerGravatar Vitaly Takmazov2017-08-20 22:17:04 +0300
commite18151791d8aae71876c4755a02272f41d3a80a4 (patch)
treed9fcacab2c4f9d7bfcfb9243ca24949293dac65d /juick-www/src/main/java
parent94494c8facde69892c1c22edb89bb401e8d5c0c6 (diff)
www: fix help
Diffstat (limited to 'juick-www/src/main/java')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/Help.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/Help.java b/juick-www/src/main/java/com/juick/www/controllers/Help.java
index 335f4b7a..c5f0aeea 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/Help.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/Help.java
@@ -73,6 +73,10 @@ public class Help {
page = langOrPage;
}
+ if (lang == null) {
+ lang = locale.getLanguage();
+ }
+
String content = helpService.getHelp(page, lang);
if (content == null && !Objects.equals("index", page))
content = helpService.getHelp("index", lang);