aboutsummaryrefslogtreecommitdiff
path: root/mod/file/views/default/embed
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-12-17 10:37:25 -0500
committerCash Costello <cash.costello@gmail.com>2011-12-17 10:37:25 -0500
commit3d8ca76d4b8b9e69a92f5f5b034609b410c9ee8c (patch)
tree0b8f597061fd63d52b8c37139c8c0340ea018609 /mod/file/views/default/embed
parentc529671a522dea0dcfc280815092ee1f5127b92b (diff)
downloadelgg-3d8ca76d4b8b9e69a92f5f5b034609b410c9ee8c.tar.gz
elgg-3d8ca76d4b8b9e69a92f5f5b034609b410c9ee8c.tar.bz2
Fixes #4086 handling containers for embed uploading
Diffstat (limited to 'mod/file/views/default/embed')
-rw-r--r--mod/file/views/default/embed/file_upload/content.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/file/views/default/embed/file_upload/content.php b/mod/file/views/default/embed/file_upload/content.php
index 4d3db0d97..8b630c828 100644
--- a/mod/file/views/default/embed/file_upload/content.php
+++ b/mod/file/views/default/embed/file_upload/content.php
@@ -7,7 +7,8 @@ $form_vars = array(
'enctype' => 'multipart/form-data',
'class' => 'elgg-form-embed',
);
-echo elgg_view_form('file/upload', $form_vars);
+$body_vars = array('container_guid' => elgg_get_page_owner_guid());
+echo elgg_view_form('file/upload', $form_vars, $body_vars);
// the tab we want to be forwarded to after upload is complete
echo elgg_view('input/hidden', array(