|
|
@ -237,12 +237,15 @@ var fs = require('fs'),
|
|
|
|
// (De)activation Hooks
|
|
|
|
// (De)activation Hooks
|
|
|
|
plugins.fireHook('action:plugin.' + (active ? 'de' : '') + 'activate', id);
|
|
|
|
plugins.fireHook('action:plugin.' + (active ? 'de' : '') + 'activate', id);
|
|
|
|
|
|
|
|
|
|
|
|
if (callback) {
|
|
|
|
// Reload meta data
|
|
|
|
callback({
|
|
|
|
plugins.reload(function() {
|
|
|
|
id: id,
|
|
|
|
if (callback) {
|
|
|
|
active: !active
|
|
|
|
callback({
|
|
|
|
});
|
|
|
|
id: id,
|
|
|
|
}
|
|
|
|
active: !active
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|