aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/form.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/form.php')
-rw-r--r--views/default/input/form.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/views/default/input/form.php b/views/default/input/form.php
index 50c51be73..5006dc5c8 100644
--- a/views/default/input/form.php
+++ b/views/default/input/form.php
@@ -18,12 +18,7 @@ $defaults = array(
$vars = array_merge($defaults, $vars);
-$body = $vars['body'];
-unset($vars['body']);
-
$vars['action'] = elgg_normalize_url($vars['action']);
-
-// @todo why?
$vars['method'] = strtolower($vars['method']);
// Generate a security header
@@ -32,6 +27,8 @@ if (!$vars['disable_security']) {
}
unset($vars['disable_security']);
+$body = $vars['body'];
+unset($vars['body']);
$attributes = elgg_format_attributes($vars);