diff options
author | Cash Costello <cash.costello@gmail.com> | 2012-07-05 20:33:00 -0400 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2012-07-05 20:33:00 -0400 |
commit | 3f7f10b113e716f33221755ad44d213b61665887 (patch) | |
tree | e4d04ab6e7454bf82134b4f3f2d2ac0795d6c878 /actions/admin/plugins | |
parent | 511f23d66219a7a92f12f61f5cc725a6861808fd (diff) | |
download | elgg-3f7f10b113e716f33221755ad44d213b61665887.tar.gz elgg-3f7f10b113e716f33221755ad44d213b61665887.tar.bz2 |
fixed plugin activate not loading page with that plugin at top
Diffstat (limited to 'actions/admin/plugins')
-rw-r--r-- | actions/admin/plugins/activate.php | 3 | ||||
-rw-r--r-- | actions/admin/plugins/deactivate.php | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/actions/admin/plugins/activate.php b/actions/admin/plugins/activate.php index 286cf5a4f..5234a4ca5 100644 --- a/actions/admin/plugins/activate.php +++ b/actions/admin/plugins/activate.php @@ -47,7 +47,8 @@ if (count($activated_guids) === 1) { $url .= "?$query"; } $plugin = get_entity($plugin_guids[0]); - forward("$url#{$plugin->getID()}"); + $id = $css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID()); + forward("$url#$id"); } else { // forward to top of page with a failure so remove any #foo $url = $_SERVER['HTTP_REFERER']; diff --git a/actions/admin/plugins/deactivate.php b/actions/admin/plugins/deactivate.php index e7ce65625..0a7ef9460 100644 --- a/actions/admin/plugins/deactivate.php +++ b/actions/admin/plugins/deactivate.php @@ -46,7 +46,8 @@ if (count($plugin_guids) == 1) { $url .= "?$query"; } $plugin = get_entity($plugin_guids[0]); - forward("$url#{$plugin->getID()}"); + $css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID()); + forward("$url#$id"); } else { forward(REFERER); } |