aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-11-07 12:13:38 +0100
committermarijus <mario@mariovavti.com>2014-11-07 12:13:38 +0100
commit2cfe0f15452c2231314991cdbbab3a9e6926a68b (patch)
tree0c442b79d313d4dab77f706d90fa04743922446a /mod/photos.php
parentf077badcb61777810aed21717092a1793bd79b1d (diff)
downloadvolse-hubzilla-2cfe0f15452c2231314991cdbbab3a9e6926a68b.tar.gz
volse-hubzilla-2cfe0f15452c2231314991cdbbab3a9e6926a68b.tar.bz2
volse-hubzilla-2cfe0f15452c2231314991cdbbab3a9e6926a68b.zip
provide lockstate for photo edit
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 0a3d6c704..93e00a4b3 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -840,11 +840,11 @@ function photos_content(&$a) {
);
}
- // lock
- $lock = ( ( (strlen($ph[0]['allow_cid']) || strlen($ph[0]['allow_gid'])
+ // lockstate
+ $lockstate = ( ( (strlen($ph[0]['allow_cid']) || strlen($ph[0]['allow_gid'])
|| strlen($ph[0]['deny_cid']) || strlen($ph[0]['deny_gid'])) )
- ? t('Private Photo')
- : Null);
+ ? array('lock', t('Private Photo'))
+ : array('unlock', Null));
$a->page['htmlhead'] .= '<script>$(document).keydown(function(event) {' . "\n";
if($prevlink)
@@ -947,6 +947,7 @@ function photos_content(&$a) {
'tag_label' => t('Add a Tag'),
'permissions' => t('Permissions'),
'aclselect' => $aclselect_e,
+ 'lockstate' => $lockstate[0],
'help_tags' => t('Example: @bob, @Barbara_Jensen, @jim@example.com'),
'item_id' => ((count($linked_items)) ? $link_item['id'] : 0),
'adult' => array('adult',t('Flag as adult in album view'), (($ph[0]['photo_flags'] & PHOTO_ADULT) ? 1 : 0),''),
@@ -1119,7 +1120,7 @@ function photos_content(&$a) {
'$id' => $link_item['id'], //$ph[0]['id'],
'$album' => $album_e,
'$tools' => $tools,
- '$lock' => $lock,
+ '$lock' => $lockstate[1],
'$photo' => $photo,
'$prevlink' => $prevlink,
'$nextlink' => $nextlink,