aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2011-10-05 20:59:21 +0200
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2011-10-05 20:59:21 +0200
commit90870d4872dbc8ff408183a79fd005b905aa86c2 (patch)
treecdd66eea79a7638b520576d381d08368b05a19c1 /mod/photos.php
parente88a8564c849b199ca552fa307f385b422d5d00a (diff)
parent5cb0b0ed4591a578720e0c985974db2d95f3810a (diff)
downloadvolse-hubzilla-90870d4872dbc8ff408183a79fd005b905aa86c2.tar.gz
volse-hubzilla-90870d4872dbc8ff408183a79fd005b905aa86c2.tar.bz2
volse-hubzilla-90870d4872dbc8ff408183a79fd005b905aa86c2.zip
Merge branch 'master' of git://github.com/friendika/Free-Friendika
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 90d51000e..1321af192 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -92,15 +92,11 @@ EOT;
function photos_post(&$a) {
- logger('mod/photos.php: photos_post(): begin' , 'LOGGER_DEBUG');
+ logger('mod-photos: photos_post(): begin' , 'LOGGER_DEBUG');
- foreach($_REQUEST AS $key => $val) {
- logger('mod/photos.php: photos_post(): $_REQUEST key: ' . $key . ' val: ' . $val , 'LOGGER_DEBUG');
- }
- foreach($_FILES AS $key => $val) {
- logger('mod/photos.php: photos_post(): $_FILES key: ' . $key . ' val: ' . $val , 'LOGGER_DEBUG');
- }
+ logger('mod_photos: REQUEST ' . print_r($_REQUEST,true), LOGGER_DATA);
+ logger('mod_photos: FILES ' . print_r($_FILES,true), LOGGER_DATA);
$can_post = false;
$visitor = 0;
@@ -585,6 +581,9 @@ function photos_post(&$a) {
else
$visible = 0;
+ if(intval($_REQUEST['not_visible']))
+ $visible = 0;
+
$str_group_allow = perms2str(((is_array($_REQUEST['group_allow'])) ? $_REQUEST['group_allow'] : explode(',',$_REQUEST['group_allow'])));
$str_contact_allow = perms2str(((is_array($_REQUEST['contact_allow'])) ? $_REQUEST['contact_allow'] : explode(',',$_REQUEST['contact_allow'])));
$str_group_deny = perms2str(((is_array($_REQUEST['group_deny'])) ? $_REQUEST['group_deny'] : explode(',',$_REQUEST['group_deny'])));
@@ -892,6 +891,7 @@ function photos_content(&$a) {
'$nickname' => $a->data['user']['nickname'],
'$newalbum' => t('New album name: '),
'$existalbumtext' => t('or existing album name: '),
+ '$nosharetext' => t('Do not show a status post for this upload'),
'$albumselect' => template_escape($albumselect),
'$permissions' => t('Permissions'),
'$aclselect' => (($visitor) ? '' : template_escape(populate_acl($a->user, $celeb))),