mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
closes #6308
This commit is contained in:
@@ -71,12 +71,13 @@ Languages.list = function (callback) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
var lang;
|
||||
try {
|
||||
var lang = JSON.parse(file);
|
||||
next(null, lang);
|
||||
lang = JSON.parse(file);
|
||||
} catch (e) {
|
||||
next(e);
|
||||
return next(e);
|
||||
}
|
||||
next(null, lang);
|
||||
});
|
||||
}, function (err, languages) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user