diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-03-28 12:55:35 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-03-28 12:55:35 +0000 |
commit | 91f0c4a6d70d50de603b01ffb72b36e04122e29d (patch) | |
tree | e963fb2601ebc821c7af563f15ba97bfb737b450 /views/default | |
parent | af9554060b79fbfecbc8583e4e4d6e69dd7ea06f (diff) | |
download | elgg-91f0c4a6d70d50de603b01ffb72b36e04122e29d.tar.gz elgg-91f0c4a6d70d50de603b01ffb72b36e04122e29d.tar.bz2 |
fixed access id bug on upload
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/tidypics/forms/upload.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/default/tidypics/forms/upload.php b/views/default/tidypics/forms/upload.php index 8cc9af897..f430fb04f 100644 --- a/views/default/tidypics/forms/upload.php +++ b/views/default/tidypics/forms/upload.php @@ -5,6 +5,7 @@ $container_guid = get_input('container_guid'); $access_id = get_entity($vars['album'])->access_id; + if (get_plugin_setting('maxfilesize','tidypics')) { if (((int) get_plugin_setting('maxfilesize','tidypics')) < 1 || ((int) get_plugin_setting('maxfilesize','tidypics')) > 1048576) { $maxfilesize = 10240; //if file size is less than 1KB or greater than 1GB, default to 10MB @@ -60,8 +61,9 @@ function showhide(layer_ref) { <p> <?php if ($container_guid) - echo '<input type="hidden" name="container_guid" value="'.$container_guid.'" />'; - + echo '<input type="hidden" name="container_guid" value="' . $container_guid . '" />'; + if ($access_id) + echo '<input type="hidden" name="access_id" value="' . $access_id . '" />'; ?> <input type="submit" value="<?php echo elgg_echo("save"); ?>" onclick="showhide('tidypics_loader');" /> </p> |