mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
@@ -31,7 +31,7 @@ widgets.render = function (uid, options, callback) {
|
||||
var returnData = {};
|
||||
|
||||
async.each(locations, function (location, done) {
|
||||
widgetsByLocation[location] = (data.global[location] || []).concat(data[options.template][location] || []);
|
||||
widgetsByLocation[location] = (data[options.template][location] || []).concat(data.global[location] || []);
|
||||
|
||||
if (!widgetsByLocation[location].length) {
|
||||
return done(null, { location: location, widgets: [] });
|
||||
|
||||
Reference in New Issue
Block a user