Skip to content
Snippets Groups Projects
Verified Commit ec30b845 authored by Peter Stadler's avatar Peter Stadler
Browse files

fix getPreference function


the getPreference would only check the URL parameter and not the actual preferences for the key "application_language".
This resulted in an always-English frontend independent of the preferences set in the prefs file

Co-Authored-By: default avatarDaniel Röwenstrunk <929533+roewenstrunk@users.noreply.github.com>
parent ea3d1532
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,11 @@ Ext.define('EdiromOnline.controller.PreferenceController', {
var lang = me.getURLParameter("lang");
if(lang) {
return lang;
} else {
}
else if(me.preferences[key]) {
return me.preferences[key];
}
else {
return "en";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment