fixed bug where the selected language in the ACP was arabic, if no language was set at all"

v1.18.x
Julian Lam 10 years ago
parent f6ba4c446a
commit 45589fbeca

@ -290,9 +290,11 @@ adminController.languages.get = function(req, res, next) {
if (err) { if (err) {
return next(err); return next(err);
} }
languages.forEach(function(language) { languages.forEach(function(language) {
language.selected = language.code === meta.config.defaultLang; language.selected = language.code === (meta.config.defaultLang || 'en_GB');
}); });
res.render('admin/general/languages', { res.render('admin/general/languages', {
languages: languages languages: languages
}); });

Loading…
Cancel
Save