From 5923b9c9f699b495757d62b109699392395dc5d0 Mon Sep 17 00:00:00 2001
From: Matthew Juhl <mjuhl24@gmail.com>
Date: Thu, 22 Apr 2010 22:25:49 +0000
Subject: [PATCH] Replace deprecated function calls

---
 plugins/unl_theme/views/default/page_elements/unl_nav.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 cd6ceef7..abba7fe7 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()) { 
 		
 		?>
 		
-- 
GitLab