From 09ee1ae77ef32a1957ecaef541c0d060f37032ec Mon Sep 17 00:00:00 2001 From: Timothy Fike Date: Thu, 21 May 2015 14:37:23 -0400 Subject: [PATCH] Call Plugins.addLanguages on reload. Fixes #3153 Ensures routes are set correctly for custom languages. --- src/plugins.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins.js b/src/plugins.js index 156ba49a3b..078745742c 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -67,11 +67,6 @@ var fs = require('fs'), emitter.emit('plugins:loaded'); callback(); }); - - Plugins.registerHook('core', { - hook: 'static:app.load', - method: addLanguages - }); }; Plugins.reload = function(callback) { @@ -84,6 +79,11 @@ var fs = require('fs'), Plugins.clientScripts.length = 0; Plugins.libraryPaths.length = 0; + Plugins.registerHook('core', { + hook: 'static:app.load', + method: addLanguages + }); + async.waterfall([ function(next) { db.getSortedSetRange('plugins:active', 0, -1, next);