aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/forms/upload.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-10-25 00:22:20 +0000
committerCash Costello <cash.costello@gmail.com>2010-10-25 00:22:20 +0000
commit893364a28955358ad259bfb75798560616ab3d49 (patch)
tree8b2ac2fb618596fed82b12c221eb7c485cbb9590 /views/default/tidypics/forms/upload.php
parentda1493b95a2f0b5000a487ae373c9318c58d0b2d (diff)
downloadelgg-893364a28955358ad259bfb75798560616ab3d49.tar.gz
elgg-893364a28955358ad259bfb75798560616ab3d49.tar.bz2
supporting both basic and flash uploader
Diffstat (limited to 'views/default/tidypics/forms/upload.php')
-rw-r--r--views/default/tidypics/forms/upload.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/views/default/tidypics/forms/upload.php b/views/default/tidypics/forms/upload.php
index 691d9701b..5a9703171 100644
--- a/views/default/tidypics/forms/upload.php
+++ b/views/default/tidypics/forms/upload.php
@@ -3,8 +3,7 @@ global $CONFIG;
//this is for image uploads only. Image edits are handled by edit.php form
-$container_guid = get_input('container_guid');
-$album = get_entity($vars['album']);
+$album = $vars['album'];
$access_id = $album->access_id;
$maxfilesize = (float) get_plugin_setting('maxfilesize','tidypics');
@@ -59,8 +58,8 @@ if ($quota) {
</p>
<p>
<?php
- if ($container_guid) {
- echo '<input type="hidden" name="container_guid" value="' . $container_guid . '" />';
+ if ($album) {
+ echo '<input type="hidden" name="album_guid" value="' . $album->guid . '" />';
}
if ($access_id) {
echo '<input type="hidden" name="access_id" value="' . $access_id . '" />';