Skip to content

Commit 55cbcfc

Browse files
committed
Fix: if the preset language does not exist, no language was selected
1 parent fc2e92b commit 55cbcfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/javascripts/app/_lang.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ under the License.
143143
languages = l;
144144

145145
var presetLanguage = getLanguageFromQueryString();
146-
if (presetLanguage) {
146+
if (presetLanguage && (jQuery.inArray(presetLanguage, languages) != -1)) {
147147
// the language is in the URL, so use that language!
148148
activateLanguage(presetLanguage);
149149

0 commit comments

Comments
 (0)