]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3630 using the plugin id for the css id
authorCash Costello <cash.costello@gmail.com>
Wed, 29 Jun 2011 10:46:51 +0000 (06:46 -0400)
committerCash Costello <cash.costello@gmail.com>
Wed, 29 Jun 2011 10:46:51 +0000 (06:46 -0400)
actions/admin/plugins/activate.php
actions/admin/plugins/deactivate.php
actions/admin/plugins/set_priority.php
views/default/object/plugin/advanced.php

index feb986b27a15c282979ac600ad92c3bf1cc76231..5a945e8eb221b06fa90e23fe3ac3ef4a1b5d3983 100644 (file)
@@ -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
index 6c9a55c159ecc895897d3247925543c4c215aebd..f5eca3aaa1c17d3900ce053aa15f9ff627f48004 100644 (file)
@@ -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);
 }
index 702aae91b09c25a1f7952c19ee16c135200cd08d..1f8bc24af381f64d537def346252c5c9fc2291e7 100644 (file)
@@ -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
index 84fc0439bdddaff0aca0ba2efbac401d5959869a..9fdbc99eefc3eae7a0a137e33f15fb07a2c8f4a0 100644 (file)
@@ -189,7 +189,7 @@ if ($files) {
 
 ?>
 
-<div class="<?php echo $draggable; ?> elgg-plugin <?php echo $active_class ?>" id="elgg-plugin-<?php echo $plugin->guid; ?>">
+<div class="<?php echo $draggable; ?> elgg-plugin <?php echo $active_class ?>" id="<?php echo $plugin->getID(); ?>">
        <div class="elgg-image-block">
                <div class="elgg-image-alt">
                        <?php if ($links) : ?>