Skip to content

Node.js based forum software built for the modern web

*actually* loading templates in the correct order :expressionless:

Julian Lam06cc761a7a7a
diff --git a/src/plugins.js b/src/plugins.js
index d1559b2b3d..30de544801 100644
--- a/src/plugins.js
+++ b/src/plugins.js
@@ -180,7 +180,7 @@ var fs = require('fs'),
return callback(err);
}
- async.each(plugins, function(plugin, next) {
+ async.eachSeries(plugins, function(plugin, next) {
if (plugin.templates || plugin.id.startsWith('nodebb-theme-')) {
winston.verbose('[plugins] Loading templates (' + plugin.id + ')');
var templatesPath = path.join(__dirname, '../node_modules', plugin.id, plugin.templates || 'templates');