aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-28 20:58:59 -0800
committerfriendica <info@friendica.com>2015-01-28 20:58:59 -0800
commite157371c39121db472cbc45b59ac89d847788648 (patch)
tree6673eebe64ae63d369fd139bb0fbbecfa20012d3 /mod/photos.php
parenta4960360669daa0a0c842427185ce1ada3b4ab97 (diff)
downloadvolse-hubzilla-e157371c39121db472cbc45b59ac89d847788648.tar.gz
volse-hubzilla-e157371c39121db472cbc45b59ac89d847788648.tar.bz2
volse-hubzilla-e157371c39121db472cbc45b59ac89d847788648.zip
remote_user => remote_channel
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 108f4c524..dbe165f60 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -11,7 +11,7 @@ require_once('include/Contact.php');
function photos_init(&$a) {
- if((get_config('system','block_public')) && (! local_channel()) && (! remote_user())) {
+ if((get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) {
return;
}
@@ -122,8 +122,8 @@ function photos_post(&$a) {
// get the list of photos we are about to delete
- if(remote_user() && (! local_channel())) {
- $str = photos_album_get_db_idstr($page_owner_uid,$album,remote_user());
+ if(remote_channel() && (! local_channel())) {
+ $str = photos_album_get_db_idstr($page_owner_uid,$album,remote_channel());
}
elseif(local_channel()) {
$str = photos_album_get_db_idstr(local_channel(),$album);
@@ -425,7 +425,7 @@ function photos_content(&$a) {
// photos/name/image/xxxxx
- if((get_config('system','block_public')) && (! local_channel()) && (! remote_user())) {
+ if((get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) {
notice( t('Public access denied.') . EOL);
return;
}