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

This commit is contained in:
Julian Lam
2015-05-23 18:50:41 -04:00
parent f6ba4c446a
commit 45589fbeca

View File

@@ -290,9 +290,11 @@ adminController.languages.get = function(req, res, next) {
if (err) {
return next(err);
}
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', {
languages: languages
});