This commit is contained in:
Hannes Mannerheim 2015-02-24 23:34:52 +01:00
parent 40cd97fcd7
commit 31aede3418

View File

@ -275,7 +275,7 @@ $(window).load(function() {
if(typeof localStorage.selectedLanguage != 'undefined' && localStorage.selectedLanguage != null) {
window.selectedLanguage = localStorage.selectedLanguage;
}
else if(typeof window.l[browserLang] != 'undefined') {
else if(typeof window.availableLanguages[browserLang] != 'undefined') {
window.selectedLanguage = browserLang;
}
}