aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-12-14 13:32:58 -0800
committerzotlabs <mike@macgirvin.com>2017-12-14 13:32:58 -0800
commit684b572aa8005479f3eb219fc526c812c801ca76 (patch)
treef8ee52081242cb28f681c2ca934f65fcf1a42387 /include/nav.php
parent215d615fc3bb9e168e21a78a6319a7971c4d1e9e (diff)
parenta61c72b3b2076a5971eca47cda8aa067c03f9d6c (diff)
downloadvolse-hubzilla-684b572aa8005479f3eb219fc526c812c801ca76.tar.gz
volse-hubzilla-684b572aa8005479f3eb219fc526c812c801ca76.tar.bz2
volse-hubzilla-684b572aa8005479f3eb219fc526c812c801ca76.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php10
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,