X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fnav.php;h=411f0ac5da5c28d1341d9d3e43165b11385b01d3;hb=1726ededac6d50f7dabe5fdc482fb29632c7cda1;hp=435e892d91a5131658803b90e5da658b2c6fb86d;hpb=06815f1a38409e45b0c5e5184c081f964ec89e47;p=friendica.git
diff --git a/include/nav.php b/include/nav.php
index 435e892d91..411f0ac5da 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -1,6 +1,9 @@
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 +70,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();
@@ -90,7 +93,7 @@ function nav_info(App $a)
// user info
$r = dba::select('contact', array('micro'), array('uid' => $a->user['uid'], 'self' => true), array('limit' => 1));
$userinfo = array(
- 'icon' => (dbm::is_result($r) ? $a->remove_baseurl($r['micro']) : 'images/person-48.jpg'),
+ 'icon' => (DBM::is_result($r) ? $a->remove_baseurl($r['micro']) : 'images/person-48.jpg'),
'name' => $a->user['username'],
);
} else {
@@ -113,7 +116,7 @@ function nav_info(App $a)
$help_url = 'help';
- if (! get_config('system', 'hide_help')) {
+ if (!Config::get('system', 'hide_help')) {
$nav['help'] = array($help_url, t('Help'), '', t('Help and documentation'));
}
@@ -121,7 +124,7 @@ function nav_info(App $a)
$nav['apps'] = array('apps', t('Apps'), '', t('Addon applications, utilities, games'));
}
- if (local_user() || !get_config('system', 'local_search')) {
+ if (local_user() || !Config::get('system', 'local_search')) {
$nav['search'] = array('search', t('Search'), '', t('Search site content'));
$nav['searchoption'] = array(
@@ -129,21 +132,21 @@ function nav_info(App $a)
t('Tags'),
t('Contacts'));
- if (get_config('system', 'poco_local_search')) {
+ if (Config::get('system', 'poco_local_search')) {
$nav['searchoption'][] = t('Forums');
}
}
$gdirpath = 'directory';
- if (strlen(get_config('system', 'singleuser'))) {
- $gdir = get_config('system', 'directory');
+ if (strlen(Config::get('system', 'singleuser'))) {
+ $gdir = Config::get('system', 'directory');
if (strlen($gdir)) {
$gdirpath = zrl($gdir, true);
}
- } elseif (get_config('system', 'community_page_style') == CP_USERS_ON_SERVER) {
+ } elseif (Config::get('system', 'community_page_style') == CP_USERS_ON_SERVER) {
$nav['community'] = array('community', t('Community'), '', t('Conversations on this site'));
- } elseif (get_config('system', 'community_page_style') == CP_GLOBAL_COMMUNITY) {
+ } elseif (Config::get('system', 'community_page_style') == CP_GLOBAL_COMMUNITY) {
$nav['community'] = array('community', t('Community'), '', t('Conversations on the network'));
}
@@ -202,9 +205,9 @@ function nav_info(App $a)
$nav['navigation'] = array('navigation/', t('Navigation'), '', t('Site map'));
// Provide a banner/logo/whatever
- $banner = get_config('system', 'banner');
+ $banner = Config::get('system', 'banner');
if ($banner === false) {
- $banner = 'Friendica';
+ $banner = 'Friendica';
}
call_hooks('nav_info', $nav);