]> git.mxchange.org Git - friendica.git/blobdiff - include/nav.php
Issue 2957: The avatar problem with mastodon should now finally be solved
[friendica.git] / include / nav.php
index 2a9f24ca9f5644e351e4ac29fd7ee2a676a4074e..fe4c50818ea583c3e02768b8b4ead0866fdb9422 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-function nav(&$a) {
+function nav(App $a) {
 
        /*
         *
@@ -28,7 +28,7 @@ function nav(&$a) {
        $tpl = get_markup_template('nav.tpl');
 
        $a->page['nav'] .= replace_macros($tpl, array(
-               '$baseurl' => $a->get_baseurl(),
+               '$baseurl' => App::get_baseurl(),
                '$sitelocation' => $nav_info['sitelocation'],
                '$nav' => $nav_info['nav'],
                '$banner' => $nav_info['banner'],
@@ -65,7 +65,7 @@ function nav_info(App $a)
 
        $myident = ((is_array($a->user) && isset($a->user['nickname'])) ? $a->user['nickname'] . '@' : '');
 
-       $sitelocation = $myident . substr($a->get_baseurl($ssl_state), strpos($a->get_baseurl($ssl_state), '//') + 2 );
+       $sitelocation = $myident . substr(App::get_baseurl($ssl_state), strpos(App::get_baseurl($ssl_state), '//') + 2 );
 
        // nav links: array of array('href', 'text', 'extra css classes', 'title')
        $nav = array();