aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/plugins/activate.php6
-rw-r--r--actions/admin/plugins/deactivate.php6
2 files changed, 10 insertions, 2 deletions
diff --git a/actions/admin/plugins/activate.php b/actions/admin/plugins/activate.php
index 822d09f43..5196467b2 100644
--- a/actions/admin/plugins/activate.php
+++ b/actions/admin/plugins/activate.php
@@ -37,4 +37,8 @@ foreach ($plugin_guids as $guid) {
elgg_invalidate_simplecache();
elgg_filepath_cache_reset();
-forward(REFERER); \ No newline at end of file
+if (count($plugin_guids) == 1) {
+ forward("pg/admin/plugins/advanced#elgg-plugin-" . $plugin_guids[0]);
+} else {
+ forward(REFERER);
+} \ No newline at end of file
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);
+}