From bb8beb26b4d87c27ce4c8dce3e1229a27a2d1a7e Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 29 Mar 2012 20:58:32 -0700 Subject: use zrl to get home again --- include/nav.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/nav.php') diff --git a/include/nav.php b/include/nav.php index f40e92dbc..d4f22e7ee 100755 --- a/include/nav.php +++ b/include/nav.php @@ -70,6 +70,8 @@ function nav(&$a) { */ $homelink = ((x($_SESSION,'visitor_home')) ? $_SESSION['visitor_home'] : ''); + if(get_my_url()) + $homelink = get_my_url(); if(($a->module != 'home') && (! (local_user()))) $nav['home'] = array($homelink, t('Home'), "", t('Home Page')); -- cgit v1.2.3 From e2c295c01f92cf9a1550a231296ff4723172592b Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 29 Mar 2012 21:44:30 -0700 Subject: another silly mistake --- include/nav.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/nav.php') diff --git a/include/nav.php b/include/nav.php index d4f22e7ee..2c9c643a9 100755 --- a/include/nav.php +++ b/include/nav.php @@ -69,9 +69,9 @@ function nav(&$a) { * "Home" should also take you home from an authenticated remote profile connection */ - $homelink = ((x($_SESSION,'visitor_home')) ? $_SESSION['visitor_home'] : ''); - if(get_my_url()) - $homelink = get_my_url(); + $homelink = get_my_url(); + if(! $homelink) + $homelink = ((x($_SESSION,'visitor_home')) ? $_SESSION['visitor_home'] : ''); if(($a->module != 'home') && (! (local_user()))) $nav['home'] = array($homelink, t('Home'), "", t('Home Page')); -- cgit v1.2.3