diff options
author | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2012-03-15 06:31:47 +0100 |
---|---|---|
committer | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2012-03-15 06:31:47 +0100 |
commit | 80b57e664a3df68994108a3d511468b249e0bbff (patch) | |
tree | 44eb74a6943ecc26a795f136e79d653c39955d63 /include/nav.php | |
parent | 4fcdada4320d5d5619eb3a1f517d0fea6b26857b (diff) | |
parent | b06c5983a4dae26dd24aecd7473bad98558cd6fc (diff) | |
download | volse-hubzilla-80b57e664a3df68994108a3d511468b249e0bbff.tar.gz volse-hubzilla-80b57e664a3df68994108a3d511468b249e0bbff.tar.bz2 volse-hubzilla-80b57e664a3df68994108a3d511468b249e0bbff.zip |
Merge branch 'master' of https://github.com/friendica/friendica
Diffstat (limited to 'include/nav.php')
-rwxr-xr-x | include/nav.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/nav.php b/include/nav.php index aadfa82fd..e28081839 100755 --- a/include/nav.php +++ b/include/nav.php @@ -8,6 +8,8 @@ function nav(&$a) { * */ + $ssl_state = ((local_user()) ? true : false); + if(!(x($a->page,'nav'))) $a->page['nav'] = ''; @@ -27,7 +29,7 @@ function nav(&$a) { $myident = ((is_array($a->user) && isset($a->user['nickname'])) ? $a->user['nickname'] . '@' : ''); - $sitelocation = $myident . substr($a->get_baseurl(),strpos($a->get_baseurl(),'//') + 2 ); + $sitelocation = $myident . substr($a->get_baseurl($ssl_state),strpos($a->get_baseurl($ssl_state),'//') + 2 ); // nav links: array of array('href', 'text', 'extra css classes', 'title') @@ -53,7 +55,7 @@ function nav(&$a) { // user info $r = q("SELECT micro FROM contact WHERE uid=%d AND self=1", intval($a->user['uid'])); $userinfo = array( - 'icon' => (count($r) ? $r[0]['micro']: $a->get_baseurl()."/images/default-profile-mm.jpg"), + 'icon' => (count($r) ? $r[0]['micro']: $a->get_baseurl($ssl_state)."/images/default-profile-mm.jpg"), 'name' => $a->user['username'], ); @@ -76,7 +78,7 @@ function nav(&$a) { if(($a->config['register_policy'] == REGISTER_OPEN) && (! local_user()) && (! remote_user())) $nav['register'] = array('register',t('Register'), "", t('Create an account')); - $help_url = $a->get_baseurl() . '/help'; + $help_url = $a->get_baseurl($ssl_state) . '/help'; if(! get_config('system','hide_help')) $nav['help'] = array($help_url, t('Help'), "", t('Help and documentation')); |