diff options
author | redmatrix <git@macgirvin.com> | 2016-02-11 15:24:21 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-02-11 15:24:21 -0800 |
commit | 55515a25d179e75bf88061b83eb102712eefdb4c (patch) | |
tree | 678026f3ebb39c6f8f9c0379916a86f8c2c51caf /mod | |
parent | 83b5adf1944511cf8bd8ebd5523f8743f42da4be (diff) | |
download | volse-hubzilla-55515a25d179e75bf88061b83eb102712eefdb4c.tar.gz volse-hubzilla-55515a25d179e75bf88061b83eb102712eefdb4c.tar.bz2 volse-hubzilla-55515a25d179e75bf88061b83eb102712eefdb4c.zip |
guest photo upload failing when js_upload is in use due to non-existent acl parameters
Diffstat (limited to 'mod')
-rw-r--r-- | mod/photos.php | 8 | ||||
-rwxr-xr-x | mod/setup.php | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php index d6105c580..944686637 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -603,6 +603,14 @@ function photos_content(&$a) { $aclselect = (($_is_owner) ? populate_acl($channel_acl,false) : ''); + // this is wrong but is to work around an issue with js_upload wherein it chokes if these variables + // don't exist. They really should be set to a parseable representation of the channel's default permissions + // which can be processed by getSelected() + + if(! $aclselect) { + $aclselect = '<input id="group_allow" type="hidden" name="allow_gid[]" value="" /><input id="contact_allow" type="hidden" name="allow_cid[]" value="" /><input id="group_deny" type="hidden" name="deny_gid[]" value="" /><input id="contact_deny" type="hidden" name="deny_cid[]" value="" />'; + } + $selname = (($datum) ? hex2bin($datum) : ''); $albums = ((array_key_exists('albums', $a->data)) ? $a->data['albums'] : photos_albums_list($a->data['channel'],$a->data['observer'])); diff --git a/mod/setup.php b/mod/setup.php index 9bcbabbc5..6dc141702 100755 --- a/mod/setup.php +++ b/mod/setup.php @@ -365,7 +365,7 @@ function setup_content(&$a) { '$adminmail' => array('adminmail', t('Site administrator email address'), $adminmail, t('Your account email address must match this in order to use the web admin panel.')), '$siteurl' => array('siteurl', t('Website URL'), z_root(), t('Please use SSL (https) URL if available.')), - '$advanced' => array('advanced', t('Enable $Projectname <strong>advanced</strong> features?'), 0, t('Some advanced features, while useful - may be best suited for technically proficient audiences')), + '$advanced' => array('advanced', t('Enable $Projectname <strong>advanced</strong> features?'), 1, t('Some advanced features, while useful - may be best suited for technically proficient audiences')), '$timezone' => array('timezone', t('Please select a default timezone for your website'), $timezone, '', get_timezones()), |