Add option for disabling language autodetection

This commit is contained in:
Peter Jaszkowiak
2017-04-21 22:10:25 -06:00
parent 2476221b79
commit c7929ec7d8
5 changed files with 17 additions and 3 deletions

View File

@@ -206,7 +206,7 @@ function setupAutoLocale(app, callback) {
});
app.use(function (req, res, next) {
if (parseInt(req.uid, 10) > 0) {
if (parseInt(req.uid, 10) > 0 || parseInt(meta.config.autoDetectLang, 10) !== 1) {
return next();
}