aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/plugins/settings/save.php1
-rw-r--r--actions/plugins/usersettings/save.php1
-rw-r--r--views/default/object/plugin.php20
3 files changed, 7 insertions, 15 deletions
diff --git a/actions/plugins/settings/save.php b/actions/plugins/settings/save.php
index c4c074a31..ef6fbbc0f 100644
--- a/actions/plugins/settings/save.php
+++ b/actions/plugins/settings/save.php
@@ -14,6 +14,7 @@
$plugin = get_input('plugin');
gatekeeper();
+ action_gatekeeper();
$result = false;
diff --git a/actions/plugins/usersettings/save.php b/actions/plugins/usersettings/save.php
index a6462e8bf..f70cd170a 100644
--- a/actions/plugins/usersettings/save.php
+++ b/actions/plugins/usersettings/save.php
@@ -14,6 +14,7 @@
$plugin = get_input('plugin');
gatekeeper();
+ action_gatekeeper();
$result = false;
diff --git a/views/default/object/plugin.php b/views/default/object/plugin.php
index 543d9926c..aaa5d6681 100644
--- a/views/default/object/plugin.php
+++ b/views/default/object/plugin.php
@@ -13,22 +13,12 @@
$entity = $vars['entity'];
$plugin = $vars['plugin'];
$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>";
+
?>
<div>
- <form action="<?php echo $vars['url']; ?>action/plugins/<?php echo $prefix; ?>settings/save" method="post">
-
- <?php
- echo elgg_view("{$prefix}settings/{$plugin}/edit",$vars);
- ?>
-
- <p>
- <input type="hidden" name="plugin" value="<?php echo $plugin ?>" />
- <input type="submit" value="<?php
-
- echo elgg_echo('save');
-
- ?>" />
- </p>
- </form>
+ <?php echo elgg_view('input/form', array('body' => $form_body, 'action' => "{$vars['url']}action/plugins/{$prefix}settings/save")); ?>
</div> \ No newline at end of file