aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 01:58:30 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 01:58:30 +0000
commit39ed76254bc4617b1564989ebdfd990f7767372a (patch)
tree75266b24667961c4e1ce2adc99609c498352a131 /actions/admin
parentfe4c102dc6e639317b505638837a995784f58b6a (diff)
downloadelgg-39ed76254bc4617b1564989ebdfd990f7767372a.tar.gz
elgg-39ed76254bc4617b1564989ebdfd990f7767372a.tar.bz2
Fixes #3013 activating/deactivating a plugin forwards to plugin page with changed plugin given focus
git-svn-id: http://code.elgg.org/elgg/trunk@8523 36083f99-b078-4883-b0ff-0f9b5a30f544
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);
+}