X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fnav.php;h=d7a6e397c603162efdee4e551cc9725d0a777ead;hb=96501bda816bb3db29ea19d89e6ffc0e83f350b3;hp=602bcd83ba9ffb38069f3fe758d05f4cc84fbdb1;hpb=74479c4020499e6aa7866b5478366932b723c515;p=friendica.git diff --git a/include/nav.php b/include/nav.php index 602bcd83ba..d7a6e397c6 100644 --- a/include/nav.php +++ b/include/nav.php @@ -1,6 +1,7 @@ page,'nav'))) + if (!(x($a->page,'nav'))) $a->page['nav'] = ''; $a->page['htmlhead'] .= replace_macros(get_markup_template('nav_head.tpl'), array()); @@ -30,7 +31,7 @@ function nav(App $a) { $tpl = get_markup_template('nav.tpl'); $a->page['nav'] .= replace_macros($tpl, array( - '$baseurl' => App::get_baseurl(), + '$baseurl' => System::baseUrl(), '$sitelocation' => $nav_info['sitelocation'], '$nav' => $nav_info['nav'], '$banner' => $nav_info['banner'], @@ -67,7 +68,7 @@ function nav_info(App $a) $myident = ((is_array($a->user) && isset($a->user['nickname'])) ? $a->user['nickname'] . '@' : ''); - $sitelocation = $myident . substr(App::get_baseurl($ssl_state), strpos(App::get_baseurl($ssl_state), '//') + 2 ); + $sitelocation = $myident . substr(System::baseUrl($ssl_state), strpos(System::baseUrl($ssl_state), '//') + 2 ); // nav links: array of array('href', 'text', 'extra css classes', 'title') $nav = array(); @@ -121,7 +122,7 @@ function nav_info(App $a) $nav['apps'] = array('apps', t('Apps'), '', t('Addon applications, utilities, games')); } - if (local_user() OR !get_config('system', 'local_search')) { + if (local_user() || !get_config('system', 'local_search')) { $nav['search'] = array('search', t('Search'), '', t('Search site content')); $nav['searchoption'] = array( @@ -138,7 +139,7 @@ function nav_info(App $a) if (strlen(get_config('system', 'singleuser'))) { $gdir = get_config('system', 'directory'); - if(strlen($gdir)) { + if (strlen($gdir)) { $gdirpath = zrl($gdir, true); } } elseif (get_config('system', 'community_page_style') == CP_USERS_ON_SERVER) { @@ -204,7 +205,7 @@ function nav_info(App $a) // Provide a banner/logo/whatever $banner = get_config('system', 'banner'); if ($banner === false) { - $banner = 'logoFriendica'; + $banner = 'logoFriendica'; } call_hooks('nav_info', $nav);