From 91f0c4a6d70d50de603b01ffb72b36e04122e29d Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 28 Mar 2009 12:55:35 +0000 Subject: fixed access id bug on upload --- views/default/tidypics/forms/upload.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'views') 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) {

'; - + echo ''; + if ($access_id) + echo ''; ?> " onclick="showhide('tidypics_loader');" />

-- cgit v1.2.3