aboutsummaryrefslogtreecommitdiffstats
path: root/mod/viewconnections.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-28 20:56:04 -0800
committerfriendica <info@friendica.com>2015-01-28 20:56:04 -0800
commita4960360669daa0a0c842427185ce1ada3b4ab97 (patch)
tree53feb1009266a77ee5338cc49919e45cca4b5ca6 /mod/viewconnections.php
parent54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff)
downloadvolse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.gz
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.bz2
volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.zip
local_user => local_channel
Diffstat (limited to 'mod/viewconnections.php')
-rw-r--r--mod/viewconnections.php6
1 files changed, 3 insertions, 3 deletions
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;