From da49a27aa24b6a85b2623134884d933dc04e201b Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 28 Aug 2012 03:25:42 -0700 Subject: make home redirection and register link work again --- mod/home.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'mod/home.php') diff --git a/mod/home.php b/mod/home.php index 0320c1b39..42669988e 100644 --- a/mod/home.php +++ b/mod/home.php @@ -6,11 +6,8 @@ function home_init(&$a) { $ret = array(); call_hooks('home_init',$ret); - if(local_user() && ($a->user['nickname'])) - goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] ); - - if(strlen(get_config('system','singleuser'))) - goaway( $a->get_baseurl() . "/profile/" . get_config('system','singleuser')); + if(local_user() && ($a->identity['entity_address'])) + goaway( $a->get_baseurl() . '/profile/' . $a->identity['entity_address']); }} @@ -27,7 +24,7 @@ function home_content(&$a) { if(file_exists('home.html')) $o .= file_get_contents('home.html'); - $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1); + $o .= login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1); call_hooks("home_content",$o); -- cgit v1.2.3