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/display.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'mod/display.php') diff --git a/mod/display.php b/mod/display.php index f14aca6da..943af4206 100644 --- a/mod/display.php +++ b/mod/display.php @@ -5,7 +5,7 @@ function display_content(&$a, $update = 0, $load = false) { // logger("mod-display: update = $update load = $load"); - if(intval(get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + if(intval(get_config('system','block_public')) && (! local_channel()) && (! remote_user())) { notice( t('Public access denied.') . EOL); return; } @@ -36,7 +36,7 @@ function display_content(&$a, $update = 0, $load = false) { $observer_is_owner = false; - if(local_user() && (! $update)) { + if(local_channel() && (! $update)) { $channel = $a->get_channel(); @@ -58,7 +58,7 @@ function display_content(&$a, $update = 0, $load = false) { 'acl' => populate_acl($channel_acl), 'bang' => '', 'visitor' => true, - 'profile_uid' => local_user(), + 'profile_uid' => local_channel(), 'return_path' => 'channel/' . $channel['channel_address'] ); @@ -109,7 +109,7 @@ function display_content(&$a, $update = 0, $load = false) { $o .= '
' . "\r\n"; - $o .= "\r\n"; $a->page['htmlhead'] .= replace_macros(get_markup_template("build_query.tpl"),array( @@ -160,13 +160,13 @@ function display_content(&$a, $update = 0, $load = false) { $sys = get_sys_channel(); $sysid = $sys['channel_id']; - if(local_user()) { + if(local_channel()) { $r = q("SELECT * from item WHERE item_restrict = 0 and uid = %d and mid = '%s' limit 1", - intval(local_user()), + intval(local_channel()), dbesc($target_item['parent_mid']) ); if($r) { @@ -235,7 +235,7 @@ function display_content(&$a, $update = 0, $load = false) { WHERE (item_flags & %d)>0 AND uid = %d and parent = %d ", intval(ITEM_UNSEEN), intval(ITEM_UNSEEN), - intval(local_user()), + intval(local_channel()), intval($r[0]['parent']) ); } -- cgit v1.2.3