it seems this is needed also to not allow editing profile photo album

This commit is contained in:
marijus 2014-10-03 19:15:37 +02:00
parent e2f45a76b1
commit 55b75381ad

View File

@ -654,7 +654,7 @@ function photos_content(&$a) {
); );
if($cmd === 'edit') { 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($can_post) {
if($a->get_template_engine() === 'internal') { if($a->get_template_engine() === 'internal') {
$album_e = template_escape($album); $album_e = template_escape($album);
@ -676,7 +676,7 @@ function photos_content(&$a) {
} }
} }
else { 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) { if($can_post) {
$edit = array(t('Edit Album'), $a->get_baseurl() . '/photos/' . $a->data['channel']['channel_address'] . '/album/' . bin2hex($album) . '/edit'); $edit = array(t('Edit Album'), $a->get_baseurl() . '/photos/' . $a->data['channel']['channel_address'] . '/album/' . bin2hex($album) . '/edit');
} }