Call Plugins.addLanguages on reload. Fixes #3153

Ensures routes are set correctly for custom languages.
This commit is contained in:
Timothy Fike
2015-05-21 14:37:23 -04:00
parent 8acb0ca304
commit 09ee1ae77e

View File

@@ -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);