aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 11:36:04 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 11:36:04 +0000
commit0a93b4d2dacd35c17ef998e50d7d60e53e720825 (patch)
treed6d3a4a689cf1c219a124cc7466a9d83897218b0
parent4e53ac0106be97e3b24f3bc431be6a2e92b3a3d7 (diff)
downloadelgg-0a93b4d2dacd35c17ef998e50d7d60e53e720825.tar.gz
elgg-0a93b4d2dacd35c17ef998e50d7d60e53e720825.tar.bz2
Refs #210 & #211 : Plugins settings converted.
git-svn-id: https://code.elgg.org/elgg/trunk@1823 36083f99-b078-4883-b0ff-0f9b5a30f544
-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