diff --git a/src/plugins/install.js b/src/plugins/install.js index 4b3111d56c..8c0f6c644a 100644 --- a/src/plugins/install.js +++ b/src/plugins/install.js @@ -66,7 +66,7 @@ module.exports = function (Plugins) { } meta.reloadRequired = true; const hook = isActive ? 'deactivate' : 'activate'; - Plugins.hooks.fire(`action:plugin.${isActive}`, { id: id }); + Plugins.hooks.fire(`action:plugin.${hook}`, { id: id }); return { id: id, active: !isActive }; };