diff options
Diffstat (limited to 'views')
-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> |