@ -9,8 +9,8 @@ sitemapController.render = function(req, res, next) {
if (err) {
return next(err);
}
var Controllers = require('./index');
Controllers.render('sitemap', tplData, function(err, xml) {
req.app.render('sitemap', tplData, function(err, xml) {
@ -103,9 +103,6 @@ module.exports = function(app, middleware, hotswapIds) {
pluginRouter.render = function() {
app.render.apply(app, arguments);
};
controllers.render = function() {
// Set-up for hotswapping (when NodeBB reloads)
pluginRouter.hotswapId = 'plugins';