diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-01 01:58:30 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-01 01:58:30 +0000 |
commit | 39ed76254bc4617b1564989ebdfd990f7767372a (patch) | |
tree | 75266b24667961c4e1ce2adc99609c498352a131 /actions/admin/plugins/deactivate.php | |
parent | fe4c102dc6e639317b505638837a995784f58b6a (diff) | |
download | elgg-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/plugins/deactivate.php')
-rw-r--r-- | actions/admin/plugins/deactivate.php | 6 |
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); +} |