aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-18 18:11:39 -0700
committerfriendica <info@friendica.com>2013-07-18 18:11:39 -0700
commitc6c0a1caa92caa911ef3ccf7550145e303ccefa9 (patch)
tree09f952aeac5626bc5335a4c337580bada84db50d /include
parent6f1db253f3038acc92075cd3f17c86eaab4fe3a5 (diff)
parent8a2ab29997c8daa52258c9ba59aa40c9fdd115df (diff)
downloadvolse-hubzilla-c6c0a1caa92caa911ef3ccf7550145e303ccefa9.tar.gz
volse-hubzilla-c6c0a1caa92caa911ef3ccf7550145e303ccefa9.tar.bz2
volse-hubzilla-c6c0a1caa92caa911ef3ccf7550145e303ccefa9.zip
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'include')
-rw-r--r--include/nav.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php
index 049009ad3..626caf981 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -107,8 +107,10 @@ EOT;
*/
$homelink = get_my_url();
- if(! $homelink)
- $homelink = ((x($_SESSION,'visitor_home')) ? $_SESSION['visitor_home'] : '');
+ if(! $homelink) {
+ $observer = $a->get_observer();
+ $homelink = (($observer) ? $observer['xchan_url'] : '');
+ }
if(($a->module != 'home') && (! (local_user())))
$nav['home'] = array($homelink, t('Home'), "", t('Home Page'));