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.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/input/form.php b/views/default/input/form.php
index 565db3afe..364e13f86 100644
--- a/views/default/input/form.php
+++ b/views/default/input/form.php
@@ -20,14 +20,14 @@ $defaults = array(
$vars = array_merge($defaults, $vars);
+$body = $vars['body'];
+unset($vars['body']);
+
if ($vars['disable_security'] != TRUE) {
$body .= elgg_view('input/securitytoken');
}
unset($vars['disable_security']);
-$body = $vars['body'];
-unset($vars['body']);
-
$attributes = html5_get_html_attributes($vars);
echo "<form $attributes>$body</form>";