Skip to content

Node.js based forum software built for the modern web

./nodebb reset widgets - global widgets as well

psychobunny2288da4dafda
diff --git a/src/widgets.js b/src/widgets.js
index de471589e7..65bf0cba74 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -75,7 +75,12 @@ var async = require('async'),
};
Widgets.reset = function(callback) {
- plugins.fireHook('filter:widgets.getAreas', [], function(err, areas) {
+ var defaultAreas = [
+ { name: 'Global Sidebar', template: 'global', location: 'sidebar' },
+ { name: 'Global Footer', template: 'global', location: 'footer' },
+ ];
+
+ plugins.fireHook('filter:widgets.getAreas', defaultAreas, function(err, areas) {
var drafts = [];
async.each(areas, function(area, next) {