diff --git a/plugins/unl_theme/views/default/page_elements/unl_nav.php b/plugins/unl_theme/views/default/page_elements/unl_nav.php index cd6ceef76ba2145e588d81d88b6f7582735a6058..abba7fe78af4a9ddaea1e6723cdce5dd6207586a 100644 --- a/plugins/unl_theme/views/default/page_elements/unl_nav.php +++ b/plugins/unl_theme/views/default/page_elements/unl_nav.php @@ -72,7 +72,7 @@ if ($item->name == "Friends") { $user = get_loggedin_user(); - $count = get_entities_from_relationship('friendrequest', $user->guid, true, "", "", 0, "", 0, 0, true); + $count = elgg_get_entities_from_relationship('friendrequest', $user->guid, true, "", "", 0, "", 0, 0, true); if(!empty($count)){ echo " <sup>" . $count . "</sup>"; @@ -95,7 +95,7 @@ <?php // The administration link is for admin or site admin users only - if ($vars['user']->admin || $vars['user']->siteadmin) { + if ($vars['user']->isAdmin()) { ?>