From a29d7c904060595e14936ffae81640a418c2fa53 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 17 Apr 2009 18:06:40 +0000 Subject: * Use profile cache service for data snapshot --- OpenSim/Region/DataSnapshot/EstateSnapshot.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs index 6865f49..cdc9344 100644 --- a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs +++ b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs @@ -29,6 +29,7 @@ using System; using System.Xml; using OpenMetaverse; using OpenSim.Framework; +using OpenSim.Framework.Communications.Cache; using OpenSim.Region.DataSnapshot.Interfaces; using OpenSim.Region.Framework.Scenes; @@ -58,14 +59,15 @@ namespace OpenSim.Region.DataSnapshot.Providers if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero) ownerid = m_scene.RegionInfo.EstateSettings.EstateOwner; - UserProfileData userProfile = m_scene.CommsManager.UserService.GetUserProfile(ownerid); + CachedUserInfo userInfo = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(ownerid); //TODO: Change to query userserver about the master avatar UUID ? String firstname; String lastname; - if (userProfile != null) + if (userInfo != null) { + UserProfileData userProfile = userInfo.UserProfile; firstname = userProfile.FirstName; lastname = userProfile.SurName; @@ -109,10 +111,8 @@ namespace OpenSim.Region.DataSnapshot.Providers publicaccess.Value = m_scene.RegionInfo.EstateSettings.PublicAccess.ToString(); flags.Attributes.Append(publicaccess); - estatedata.AppendChild(flags); - this.Stale = false; return estatedata; } -- cgit v1.1