From 39ed76254bc4617b1564989ebdfd990f7767372a Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 1 Mar 2011 01:58:30 +0000 Subject: 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 --- actions/admin/plugins/activate.php | 6 +++++- actions/admin/plugins/deactivate.php | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'actions') 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); +} -- cgit v1.2.3