Merge pull request #3163 from yariplus/patch-2

Call Plugins.addLanguages on reload. Fixes #3153
v1.18.x
psychobunny 10 years ago
commit 0aceafb344

@ -67,11 +67,6 @@ var fs = require('fs'),
emitter.emit('plugins:loaded'); emitter.emit('plugins:loaded');
callback(); callback();
}); });
Plugins.registerHook('core', {
hook: 'static:app.load',
method: addLanguages
});
}; };
Plugins.reload = function(callback) { Plugins.reload = function(callback) {
@ -84,6 +79,11 @@ var fs = require('fs'),
Plugins.clientScripts.length = 0; Plugins.clientScripts.length = 0;
Plugins.libraryPaths.length = 0; Plugins.libraryPaths.length = 0;
Plugins.registerHook('core', {
hook: 'static:app.load',
method: addLanguages
});
async.waterfall([ async.waterfall([
function(next) { function(next) {
db.getSortedSetRange('plugins:active', 0, -1, next); db.getSortedSetRange('plugins:active', 0, -1, next);

Loading…
Cancel
Save