aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-08-25 10:00:38 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-08-25 10:00:38 -0700
commitdccc333c765bb28da55b4a55d9c916acdb88413a (patch)
treebdd26a0b4cd85241a19b7fcb2c0770f0ac3eb9f0 /actions/admin
parentec7b94a64aef23b85866ecdac8e8acc712d29bb6 (diff)
parent003cb81c7888f4d2fd763e5814027c6f8d71186f (diff)
downloadelgg-dccc333c765bb28da55b4a55d9c916acdb88413a.tar.gz
elgg-dccc333c765bb28da55b4a55d9c916acdb88413a.tar.bz2
Merge branch 'master' of github.com:brettp/Elgg
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/plugins/activate.php3
-rw-r--r--actions/admin/plugins/deactivate.php3
-rw-r--r--actions/admin/plugins/set_priority.php5
3 files changed, 6 insertions, 5 deletions
diff --git a/actions/admin/plugins/activate.php b/actions/admin/plugins/activate.php
index feb986b27..5a945e8eb 100644
--- a/actions/admin/plugins/activate.php
+++ b/actions/admin/plugins/activate.php
@@ -44,7 +44,8 @@ if (count($activated_guids) === 1) {
if ($query) {
$url .= "?$query";
}
- forward($url . '#elgg-plugin-' . $plugin_guids[0]);
+ $plugin = get_entity($plugin_guids[0]);
+ forward("$url#{$plugin->getID()}");
} else {
forward(REFERER);
} \ No newline at end of file
diff --git a/actions/admin/plugins/deactivate.php b/actions/admin/plugins/deactivate.php
index 6c9a55c15..f5eca3aaa 100644
--- a/actions/admin/plugins/deactivate.php
+++ b/actions/admin/plugins/deactivate.php
@@ -43,7 +43,8 @@ if (count($plugin_guids) == 1) {
if ($query) {
$url .= "?$query";
}
- forward($url . '#elgg-plugin-' . $plugin_guids[0]);
+ $plugin = get_entity($plugin_guids[0]);
+ forward("$url#{$plugin->getID()}");
} else {
forward(REFERER);
}
diff --git a/actions/admin/plugins/set_priority.php b/actions/admin/plugins/set_priority.php
index 702aae91b..1f8bc24af 100644
--- a/actions/admin/plugins/set_priority.php
+++ b/actions/admin/plugins/set_priority.php
@@ -6,9 +6,8 @@
* overriding as well as the order of view extensions. Plugins with higher
* priority are loaded after and override plugins with lower priorities.
*
- * NOTE: When viewing the admin page (advanced plugin admin in >= 1.8) plugins
- * LOWER on the page have HIGHER priority and will override views, etc
- * from plugins above them.
+ * NOTE: When viewing the plugin admin page, plugins LOWER on the page
+ * have HIGHER priority and will override views, etc from plugins above them.
*
* @package Elgg.Core
* @subpackage Administration.Plugins