aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorbeck24 <beck24@gmail.com>2013-10-13 21:51:02 -0700
committerbeck24 <beck24@gmail.com>2013-10-13 21:51:02 -0700
commit6da43b70ca0de807c0532adb0bba65405d3ffbc1 (patch)
treea8095679be149aa476dbb6beff88ef0b82760d7f /actions
parent634216f0978d037fb84ef8e68e4e4272752c22fb (diff)
downloadelgg-6da43b70ca0de807c0532adb0bba65405d3ffbc1.tar.gz
elgg-6da43b70ca0de807c0532adb0bba65405d3ffbc1.tar.bz2
move deactivate event registration to the user-triggered action
Diffstat (limited to 'actions')
-rw-r--r--actions/admin/plugins/deactivate.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/admin/plugins/deactivate.php b/actions/admin/plugins/deactivate.php
index 354f4717d..adb86dd7a 100644
--- a/actions/admin/plugins/deactivate.php
+++ b/actions/admin/plugins/deactivate.php
@@ -10,6 +10,9 @@
* @package Elgg.Core
* @subpackage Administration.Plugins
*/
+
+ // prevent disabling plugins with active dependents
+ elgg_register_event_handler('deactivate', 'plugin', 'plugins_deactivate_dependency_check');
$plugin_guids = get_input('plugin_guids');