aboutsummaryrefslogtreecommitdiff
path: root/views/default/input
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input')
-rw-r--r--views/default/input/form.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/input/form.php b/views/default/input/form.php
index 5006dc5c8..c9f9aa97d 100644
--- a/views/default/input/form.php
+++ b/views/default/input/form.php
@@ -21,15 +21,15 @@ $vars = array_merge($defaults, $vars);
$vars['action'] = elgg_normalize_url($vars['action']);
$vars['method'] = strtolower($vars['method']);
+$body = $vars['body'];
+unset($vars['body']);
+
// Generate a security header
if (!$vars['disable_security']) {
$body .= elgg_view('input/securitytoken');
}
unset($vars['disable_security']);
-$body = $vars['body'];
-unset($vars['body']);
-
$attributes = elgg_format_attributes($vars);
echo "<form $attributes><fieldset>$body</fieldset></form>"; \ No newline at end of file