diff options
Diffstat (limited to 'views/default/core/settings/tools')
-rw-r--r-- | views/default/core/settings/tools/plugin.php | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/views/default/core/settings/tools/plugin.php b/views/default/core/settings/tools/plugin.php index d89e93c2f..ab25e7fb8 100644 --- a/views/default/core/settings/tools/plugin.php +++ b/views/default/core/settings/tools/plugin.php @@ -1,42 +1,35 @@ <?php /** - * Elgg plugin manifest class + * This displays a plugin's user settings. * - * This file renders a plugin for the admin screen, including active/deactive, manifest details & display plugin - * settings. - * - * @package Elgg - * @subpackage Core + * @package Elgg.Plugin + * @subpackage Settings */ $plugin = $vars['plugin']; -$details = $vars['details']; - -$active = $details['active']; -$manifest = $details['manifest']; - +$plugin_id = $plugin->getID(); $user_guid = $details['user_guid']; -if ($user_guid) { +if (!$user_guid) { $user_guid = elgg_get_logged_in_user_guid(); } -if (elgg_view("usersettings/{$plugin}/edit")) { +if (elgg_view("usersettings/$plugin_id/edit")) { ?> <div class="elgg-module elgg-module-info"> <div class="elgg-head"> - <h3><?php echo elgg_echo($plugin); ?></h3> + <h3><?php echo $plugin->manifest->getName(); ?></h3> </div> <div class="elgg-body"> <div id="<?php echo $plugin; ?>_settings"> <?php echo elgg_view("object/plugin", array( 'plugin' => $plugin, - 'entity' => find_plugin_usersettings($plugin, $user_guid), + 'entity' => find_plugin_usersettings($plugin_id, $user_guid), 'prefix' => 'user' )); ?> </div> </div> -</div> +</div> <?php }
\ No newline at end of file |