diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-12-14 21:48:30 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-12-14 21:48:30 +0100 |
commit | a07b5ba4ddd0031000cb86b5c604b1f73ade8024 (patch) | |
tree | 452c8231c8429d83bf8eb20f328cd27755bb1b69 | |
parent | 412f177c56a54cc9d3c9b40236141b0bc35d3361 (diff) | |
download | volse-hubzilla-a07b5ba4ddd0031000cb86b5c604b1f73ade8024.tar.gz volse-hubzilla-a07b5ba4ddd0031000cb86b5c604b1f73ade8024.tar.bz2 volse-hubzilla-a07b5ba4ddd0031000cb86b5c604b1f73ade8024.zip |
make remote homelink link to the home host and not to the home channel
-rw-r--r-- | include/nav.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/nav.php b/include/nav.php index 2366fe7f1..8566cc58c 100644 --- a/include/nav.php +++ b/include/nav.php @@ -176,13 +176,15 @@ EOT; } - - $homelink = get_my_url(); - if(! $homelink) { + $my_url = get_my_url(); + if(! $my_url) { $observer = App::get_observer(); - $homelink = (($observer) ? $observer['xchan_url'] : ''); + $my_url = (($observer) ? $observer['xchan_url'] : ''); } + $homelink_arr = parse_url($my_url); + $homelink = $homelink_arr['scheme'] . '://' . $homelink_arr['host']; + if(! $is_owner) { $nav['rusermenu'] = array( $homelink, |