diff options
author | marijus <mario@mariovavti.com> | 2014-10-03 19:15:37 +0200 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-10-03 19:15:37 +0200 |
commit | 55b75381adb3faefb6c74967e1b5f8408e126e38 (patch) | |
tree | c4bdda35a05462e0aec585291cecb872bf81c232 /mod/photos.php | |
parent | e2f45a76b1e63152c80601daeae9782fac858fcb (diff) | |
download | volse-hubzilla-55b75381adb3faefb6c74967e1b5f8408e126e38.tar.gz volse-hubzilla-55b75381adb3faefb6c74967e1b5f8408e126e38.tar.bz2 volse-hubzilla-55b75381adb3faefb6c74967e1b5f8408e126e38.zip |
it seems this is needed also to not allow editing profile photo album
Diffstat (limited to 'mod/photos.php')
-rw-r--r-- | mod/photos.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php index f02f0f5f7..dc593f22b 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -654,7 +654,7 @@ function photos_content(&$a) { ); if($cmd === 'edit') { - if(($album !== t('Profile Photos')) && ($album !== 'Contact Photos') && ($album !== t('Contact Photos'))) { + if(($album !== t('Profile Photos')) && ($album !== 'Profile Photos') && ($album !== 'Contact Photos') && ($album !== t('Contact Photos'))) { if($can_post) { if($a->get_template_engine() === 'internal') { $album_e = template_escape($album); @@ -676,7 +676,7 @@ function photos_content(&$a) { } } else { - if(($album !== t('Profile Photos')) && ($album !== 'Contact Photos') && ($album !== t('Contact Photos'))) { + if(($album !== t('Profile Photos')) && ($album !== 'Profile Photos') && ($album !== 'Contact Photos') && ($album !== t('Contact Photos'))) { if($can_post) { $edit = array(t('Edit Album'), $a->get_baseurl() . '/photos/' . $a->data['channel']['channel_address'] . '/album/' . bin2hex($album) . '/edit'); } |