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