aboutsummaryrefslogtreecommitdiff
path: root/views/default/object/plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/object/plugin.php')
-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>