Skip to content

Node.js based forum software built for the modern web

fix for wrapper

barisusaklib1e93c4558c7
diff --git a/src/routes/index.js b/src/routes/index.js
index ca0416fd30..814f15354a 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -161,7 +161,7 @@ module.exports = function(app, middleware) {
relativePath = nconf.get('relative_path');
router.render = function() {
- app.render.call(arguments);
+ app.render.apply(app, arguments);
};
app.all(relativePath + '/api/*', middleware.updateLastOnlineTime, middleware.prepareAPI);