mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
Fix reverse proxies breaking admin translations
This commit is contained in:
@@ -185,7 +185,7 @@ middleware.applyBlacklist = function (req, res, next) {
|
||||
|
||||
middleware.getTranslation = function (req, res, next) {
|
||||
var language = req.params.language;
|
||||
var namespace = req.params.namespace;
|
||||
var namespace = req.params[0];
|
||||
|
||||
if (language && namespace) {
|
||||
languages.get(language, namespace, function (err, translations) {
|
||||
|
||||
Reference in New Issue
Block a user