aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 12:15:14 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-12 12:15:14 +0000
commit2d6e424b425c1d32b6223f0f3c6f869ef31b2e10 (patch)
treec5255891f6b1734f425f2d9ea001a4ba8fc33efd
parent4659abbaebaf50f728b5cdc13c0f0c913be477d8 (diff)
downloadelgg-2d6e424b425c1d32b6223f0f3c6f869ef31b2e10.tar.gz
elgg-2d6e424b425c1d32b6223f0f3c6f869ef31b2e10.tar.bz2
reverted part of [8148] that broke all forms
git-svn-id: http://code.elgg.org/elgg/trunk@8151 36083f99-b078-4883-b0ff-0f9b5a30f544
-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