diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-13 22:07:45 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-13 22:07:45 +0000 |
commit | fde85445cf67f7e0033bb761a547e36ebcf068a8 (patch) | |
tree | e0e3bba99fdb027dbb88e7335a3052d64e1cf2be /views | |
parent | fa51cd122cc9927bca66fb49ffb6170cce273203 (diff) | |
download | elgg-fde85445cf67f7e0033bb761a547e36ebcf068a8.tar.gz elgg-fde85445cf67f7e0033bb761a547e36ebcf068a8.tar.bz2 |
upload form now using input/form as recommended
Diffstat (limited to 'views')
-rw-r--r-- | views/default/tidypics/forms/upload.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/views/default/tidypics/forms/upload.php b/views/default/tidypics/forms/upload.php index e93d3f5ba..db162e4e9 100644 --- a/views/default/tidypics/forms/upload.php +++ b/views/default/tidypics/forms/upload.php @@ -44,7 +44,9 @@ function showhide(layer_ref) { //--> </script> <div class="contentWrapper"> -<form action="<?php echo $vars['url']; ?>action/tidypics/upload" enctype="multipart/form-data" method="post"> +<?php + ob_start(); +?> <p style="line-height:1.6em;"> <label><?php echo elgg_echo("images:upload"); ?></label><br /> <i><?php echo elgg_echo("tidypics:settings:maxfilesize") . ' ' . $maxfilesize; ?></i><br /> @@ -67,6 +69,13 @@ function showhide(layer_ref) { ?> <input type="submit" value="<?php echo elgg_echo("save"); ?>" onclick="showhide('tidypics_loader');" /> </p> - -</form> +<?php + $form_body = ob_get_clean(); + + echo elgg_view('input/form', array( 'action' => "{$vars['url']}action/tidypics/upload", + 'body' => $form_body, + 'internalid' => 'tidypicsUpload', + 'enctype' => 'multipart/form-data', + 'method' => 'post',)); +?> </div>
\ No newline at end of file |