aboutsummaryrefslogtreecommitdiff
path: root/views/default/object
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/object
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/object')
-rw-r--r--views/default/object/plugin.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/views/default/object/plugin.php b/views/default/object/plugin.php
index aef9a9bbd..054931a38 100644
--- a/views/default/object/plugin.php
+++ b/views/default/object/plugin.php
@@ -8,10 +8,12 @@
$entity = $vars['entity'];
$plugin = $vars['plugin'];
+$plugin_id = $plugin->getID();
$prefix = $vars['prefix']; // Do we want to show admin settings (default) or user settings
-$form_body = elgg_view("{$prefix}settings/{$plugin}/edit", $vars);
-$form_body .= "<p>" . elgg_view('input/hidden', array('internalname' => 'plugin', 'value' => $plugin)) . elgg_view('input/submit', array('value' => elgg_echo('save'))) . "</p>";
+$form_body = elgg_view("{$prefix}settings/{$plugin_id}/edit", $vars)
+ . "<p>" . elgg_view('input/hidden', array('internalname' => 'plugin', 'value' => $plugin_id))
+ . elgg_view('input/submit', array('value' => elgg_echo('save'))) . "</p>";
?>
<div>