aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/settings/tools
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-09 01:02:00 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-09 01:02:00 +0000
commit0154f867118ce33b2cfaa51677436e00502e223f (patch)
tree4e3021d8ae95c84c237ec2a867ba0caf4ad287b9 /views/default/core/settings/tools
parentf6498706d2408aedbb9069e08b71c635b8c9a9d3 (diff)
downloadelgg-0154f867118ce33b2cfaa51677436e00502e223f.tar.gz
elgg-0154f867118ce33b2cfaa51677436e00502e223f.tar.bz2
Refs #2874: Using elgg_get_plugins() instead of get_installed_plugins().
git-svn-id: http://code.elgg.org/elgg/trunk@8084 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/core/settings/tools')
-rw-r--r--views/default/core/settings/tools/plugin.php25
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