v1.18.x
Julian Lam 10 years ago
parent 74630b3a79
commit f3ea8d1cff

@ -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
});
}
});
});
};

Loading…
Cancel
Save