aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Willingham <beardyunixer@beardyunixer.com>2013-07-18 15:22:19 -0700
committerThomas Willingham <beardyunixer@beardyunixer.com>2013-07-18 15:22:19 -0700
commit8a2ab29997c8daa52258c9ba59aa40c9fdd115df (patch)
treebe4144f73ec8be74f9c69a4aac05c5140e61f6c5
parentd9701d46066ce61102dc874639b8afd0a3ade735 (diff)
parent938369443256651c9d24f2b033ee44ecd75c0e8f (diff)
downloadvolse-hubzilla-8a2ab29997c8daa52258c9ba59aa40c9fdd115df.tar.gz
volse-hubzilla-8a2ab29997c8daa52258c9ba59aa40c9fdd115df.tar.bz2
volse-hubzilla-8a2ab29997c8daa52258c9ba59aa40c9fdd115df.zip
Merge pull request #81 from git-marijus/master
make home link on remote sites work again
-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'));