aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorroot <root@diekershoff.homeunix.net>2011-01-05 18:06:35 +0100
committerroot <root@diekershoff.homeunix.net>2011-01-05 18:06:35 +0100
commit011e0c3f8142e3976a4d386fce066c802d4727ab (patch)
tree4f6e03305a536b54e90b76d13c3aa6d6b6ac3212 /include/nav.php
parent830a56723c37e206f2114c4bc4ade080f475cba9 (diff)
parentb358e8afe21443a8f7e14573953a9780ba1d592d (diff)
downloadvolse-hubzilla-011e0c3f8142e3976a4d386fce066c802d4727ab.tar.gz
volse-hubzilla-011e0c3f8142e3976a4d386fce066c802d4727ab.tar.bz2
volse-hubzilla-011e0c3f8142e3976a4d386fce066c802d4727ab.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/nav.php b/include/nav.php
index 74b4defc3..1bde702be 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -15,8 +15,12 @@
$a->page['nav'] .= "<span id=\"nav-link-wrapper\" >\r\n";
+ // This should take you home from a remote profile connection
+
+ $homelink = ((x($_SESSION,'visitor_home')) ? $_SESSION['visitor_home'] : '');
+
if(($a->module != 'home') && (! (local_user())))
- $a->page['nav'] .= '<a id="nav-home-link" class="nav-commlink" href="">' . t('Home') . "</a>\r\n";
+ $a->page['nav'] .= '<a id="nav-home-link" class="nav-commlink" href="' . $homelink . '">' . t('Home') . "</a>\r\n";
if(($a->config['register_policy'] == REGISTER_OPEN) && (! local_user()) && (! remote_user()))
$a->page['nav'] .= '<a id="nav-register-link" class="nav-commlink" href="register" >'
. t('Register') . "</a>\r\n";