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/home.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mod/home.php') diff --git a/mod/home.php b/mod/home.php index 2e57a2ab9..733789991 100644 --- a/mod/home.php +++ b/mod/home.php @@ -12,10 +12,10 @@ function home_init(&$a) { $splash = ((argc() > 1 && argv(1) === 'splash') ? true : false); $channel = $a->get_channel(); - if(local_user() && $channel && $channel['xchan_url'] && ! $splash) { + if(local_channel() && $channel && $channel['xchan_url'] && ! $splash) { $dest = $channel['channel_startpage']; if(! $dest) - $dest = get_pconfig(local_user(),'system','startpage'); + $dest = get_pconfig(local_channel(),'system','startpage'); if(! $dest) $dest = get_config('system','startpage'); if(! $dest) @@ -100,7 +100,7 @@ function home_content(&$a, $update = 0, $load = false) { if($sitename) $o .= '

' . sprintf( t("Welcome to %s") ,$sitename) . '

'; - if(intval(get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + if(intval(get_config('system','block_public')) && (! local_channel()) && (! remote_user())) { // If there's nothing special happening, just spit out a login box if (! $a->config['system']['no_login_on_homepage']) @@ -121,14 +121,14 @@ function home_content(&$a, $update = 0, $load = false) { $maxheight = 75; $o .= '
' . "\r\n"; - $o .= "\r\n"; $a->page['htmlhead'] .= replace_macros(get_markup_template("build_query.tpl"),array( '$baseurl' => z_root(), '$pgtype' => 'home', - '$uid' => ((local_user()) ? local_user() : '0'), + '$uid' => ((local_channel()) ? local_channel() : '0'), '$gid' => '0', '$cid' => '0', '$cmin' => '0', -- cgit v1.2.3 From e157371c39121db472cbc45b59ac89d847788648 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 28 Jan 2015 20:58:59 -0800 Subject: remote_user => remote_channel --- mod/home.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/home.php') diff --git a/mod/home.php b/mod/home.php index 733789991..854e2df26 100644 --- a/mod/home.php +++ b/mod/home.php @@ -100,7 +100,7 @@ function home_content(&$a, $update = 0, $load = false) { if($sitename) $o .= '

' . sprintf( t("Welcome to %s") ,$sitename) . '

'; - if(intval(get_config('system','block_public')) && (! local_channel()) && (! remote_user())) { + if(intval(get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) { // If there's nothing special happening, just spit out a login box if (! $a->config['system']['no_login_on_homepage']) -- cgit v1.2.3