Friendica';
}
- Hook::callAll('nav_info', $nav);
-
- return [
+ $nav_info = [
+ 'banner' => $banner,
+ 'nav' => $nav,
'sitelocation' => $sitelocation,
- 'nav' => $nav,
- 'banner' => $banner,
- 'userinfo' => $userinfo,
+ 'userinfo' => $userinfo,
];
+
+ Hook::callAll('nav_info', $nav_info);
+
+ return $nav_info;
}
}
diff --git a/view/theme/frio/templates/nav.tpl b/view/theme/frio/templates/nav.tpl
index 8e1b25757b..915e5e9fc7 100644
--- a/view/theme/frio/templates/nav.tpl
+++ b/view/theme/frio/templates/nav.tpl
@@ -1,11 +1,11 @@
-{{* we have modified the navmenu (look at function frio_remote_nav() ) to have remote links. $nav.userinfo is a new variable and replaces the original $userinfo variable *}}
-{{if $nav.userinfo}}
+{{* we have modified the navmenu (look at function frio_remote_nav() ) to have remote links. *}}
+{{if $userinfo}}