mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
fixed plugin deactivation
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user