aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/plugins/deactivate.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/plugins/deactivate.php')
-rw-r--r--actions/admin/plugins/deactivate.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/actions/admin/plugins/deactivate.php b/actions/admin/plugins/deactivate.php
index 24ab38501..c1dd2d1b5 100644
--- a/actions/admin/plugins/deactivate.php
+++ b/actions/admin/plugins/deactivate.php
@@ -37,4 +37,8 @@ foreach ($plugin_guids as $guid) {
elgg_invalidate_simplecache();
elgg_filepath_cache_reset();
-forward(REFERER);
+if (count($plugin_guids) == 1) {
+ forward("pg/admin/plugins/advanced#elgg-plugin-" . $plugin_guids[0]);
+} else {
+ forward(REFERER);
+}