fixed plugin deactivation

v1.18.x
Baris Soner Usakli 11 years ago
parent 2580caf864
commit bc8adff70a

@ -274,10 +274,17 @@ var fs = require('fs'),
return;
}
if(active) {
Plugins.fireHook('action:plugin.deactivate', id);
}
// Reload meta data
Plugins.reload(function() {
// (De)activation Hooks
Plugins.fireHook('action:plugin.' + (active ? 'de' : '') + 'activate', id);
if(!active) {
Plugins.fireHook('action:plugin.activate', id);
}
if (callback) {
callback({

Loading…
Cancel
Save