mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
@@ -7,7 +7,6 @@ var winston = require('winston');
|
||||
|
||||
var plugins = require('../plugins');
|
||||
var translator = require('../translator');
|
||||
var widgets = require('../widgets');
|
||||
|
||||
module.exports = function (middleware) {
|
||||
middleware.processRender = function (req, res, next) {
|
||||
@@ -50,17 +49,6 @@ module.exports = function (middleware) {
|
||||
function (data, next) {
|
||||
options = data.templateData;
|
||||
|
||||
widgets.render(req.uid, {
|
||||
template: template + '.tpl',
|
||||
url: options.url,
|
||||
templateData: options,
|
||||
req: req,
|
||||
res: res,
|
||||
}, next);
|
||||
},
|
||||
function (data, next) {
|
||||
options.widgets = data;
|
||||
|
||||
res.locals.template = template;
|
||||
options._locals = undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user