mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
closed #2367
This commit is contained in:
@@ -533,19 +533,12 @@ var fs = require('fs'),
|
||||
Plugins.fireHook('action:plugin.deactivate', id);
|
||||
}
|
||||
|
||||
// Reload meta data
|
||||
Plugins.reload(function() {
|
||||
if(!active) {
|
||||
Plugins.fireHook('action:plugin.activate', id);
|
||||
}
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
callback(null, {
|
||||
id: id,
|
||||
active: !active
|
||||
});
|
||||
}
|
||||
});
|
||||
if (typeof callback === 'function') {
|
||||
callback(null, {
|
||||
id: id,
|
||||
active: !active
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user