From a4960360669daa0a0c842427185ce1ada3b4ab97 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 28 Jan 2015 20:56:04 -0800 Subject: local_user => local_channel --- mod/viewconnections.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/viewconnections.php') diff --git a/mod/viewconnections.php b/mod/viewconnections.php index aab136c43..1be5c157f 100644 --- a/mod/viewconnections.php +++ b/mod/viewconnections.php @@ -4,7 +4,7 @@ require_once('include/Contact.php'); function viewconnections_init(&$a) { - if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + if((get_config('system','block_public')) && (! local_channel()) && (! remote_user())) { return; } if(argc() > 1) @@ -13,7 +13,7 @@ function viewconnections_init(&$a) { function viewconnections_content(&$a) { - if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + if((get_config('system','block_public')) && (! local_channel()) && (! remote_user())) { notice( t('Public access denied.') . EOL); return; } @@ -28,7 +28,7 @@ function viewconnections_content(&$a) { return; } - $is_owner = ((local_user() && local_user() == $a->profile['uid']) ? true : false); + $is_owner = ((local_channel() && local_channel() == $a->profile['uid']) ? true : false); $abook_flags = ABOOK_FLAG_PENDING|ABOOK_FLAG_SELF; $xchan_flags = XCHAN_FLAGS_ORPHAN|XCHAN_FLAGS_DELETED; -- cgit v1.2.3