aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default/embed/file_upload/content.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-10-01 16:54:24 -0400
committercash <cash.costello@gmail.com>2011-10-01 16:54:24 -0400
commitbc292c96ac6b118bd7a99509fce1c11bb232aeb2 (patch)
tree0afc4522e91621f293df55250b77875ea3aecbb1 /mod/file/views/default/embed/file_upload/content.php
parent418078a8d4c157c1c88d196d3b24ff0f0893b764 (diff)
downloadelgg-bc292c96ac6b118bd7a99509fce1c11bb232aeb2.tar.gz
elgg-bc292c96ac6b118bd7a99509fce1c11bb232aeb2.tar.bz2
fixed the forwarding of an embed upload form
Diffstat (limited to 'mod/file/views/default/embed/file_upload/content.php')
-rw-r--r--mod/file/views/default/embed/file_upload/content.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/mod/file/views/default/embed/file_upload/content.php b/mod/file/views/default/embed/file_upload/content.php
index 13c18f745..a530b3194 100644
--- a/mod/file/views/default/embed/file_upload/content.php
+++ b/mod/file/views/default/embed/file_upload/content.php
@@ -9,7 +9,12 @@ $form_vars = array(
);
$upload_content = elgg_view_form('file/upload', $form_vars);
-echo "<div class='mbm'>" . elgg_echo('embed:upload_type') . "$input</div>";
echo "<div class='embed-upload'>";
echo $upload_content;
-echo "</div>"; \ No newline at end of file
+echo "</div>";
+
+// the tab we want to be forwarded to after upload is complete
+echo elgg_view('input/hidden', array(
+ 'name' => 'embed_forward',
+ 'value' => 'file',
+)); \ No newline at end of file