aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-19 13:35:15 -0400
committercash <cash.costello@gmail.com>2011-06-19 13:35:15 -0400
commitd631164572a0d4da18a3c9d98638c884329fdd31 (patch)
tree553283708e76207e7e91e1e8dd2f500c2c1ad3ea /mod/file
parent1f6b5cc6ac57ead98bbaa6c85323a69b6128629e (diff)
downloadelgg-d631164572a0d4da18a3c9d98638c884329fdd31.tar.gz
elgg-d631164572a0d4da18a3c9d98638c884329fdd31.tar.bz2
need a default container for files if form included from outside file plugin (like the embed plugin)
Diffstat (limited to 'mod/file')
-rw-r--r--mod/file/views/default/forms/file/upload.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/file/views/default/forms/file/upload.php b/mod/file/views/default/forms/file/upload.php
index 001e66674..aadc449fd 100644
--- a/mod/file/views/default/forms/file/upload.php
+++ b/mod/file/views/default/forms/file/upload.php
@@ -11,6 +11,9 @@ $desc = elgg_extract('description', $vars, '');
$tags = elgg_extract('tags', $vars, '');
$access_id = elgg_extract('access_id', $vars, ACCESS_DEFAULT);
$container_guid = elgg_extract('container_guid', $vars);
+if (!$container_guid) {
+ $container_guid = elgg_get_logged_in_user_guid();
+}
$guid = elgg_extract('guid', $vars, null);
$ajax = elgg_extract('ajax', $vars, FALSE);