From 06cc761a7a7a904b6f87dfe4dae741e25529f9d6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 26 Jan 2016 15:52:38 -0500 Subject: [PATCH] *actually* loading templates in the correct order :expressionless: --- src/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');