aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/DataSnapshot/EstateSnapshot.cs8
1 files 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;
29using System.Xml; 29using System.Xml;
30using OpenMetaverse; 30using OpenMetaverse;
31using OpenSim.Framework; 31using OpenSim.Framework;
32using OpenSim.Framework.Communications.Cache;
32using OpenSim.Region.DataSnapshot.Interfaces; 33using OpenSim.Region.DataSnapshot.Interfaces;
33using OpenSim.Region.Framework.Scenes; 34using OpenSim.Region.Framework.Scenes;
34 35
@@ -58,14 +59,15 @@ namespace OpenSim.Region.DataSnapshot.Providers
58 if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero) 59 if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero)
59 ownerid = m_scene.RegionInfo.EstateSettings.EstateOwner; 60 ownerid = m_scene.RegionInfo.EstateSettings.EstateOwner;
60 61
61 UserProfileData userProfile = m_scene.CommsManager.UserService.GetUserProfile(ownerid); 62 CachedUserInfo userInfo = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(ownerid);
62 63
63 //TODO: Change to query userserver about the master avatar UUID ? 64 //TODO: Change to query userserver about the master avatar UUID ?
64 String firstname; 65 String firstname;
65 String lastname; 66 String lastname;
66 67
67 if (userProfile != null) 68 if (userInfo != null)
68 { 69 {
70 UserProfileData userProfile = userInfo.UserProfile;
69 firstname = userProfile.FirstName; 71 firstname = userProfile.FirstName;
70 lastname = userProfile.SurName; 72 lastname = userProfile.SurName;
71 73
@@ -109,10 +111,8 @@ namespace OpenSim.Region.DataSnapshot.Providers
109 publicaccess.Value = m_scene.RegionInfo.EstateSettings.PublicAccess.ToString(); 111 publicaccess.Value = m_scene.RegionInfo.EstateSettings.PublicAccess.ToString();
110 flags.Attributes.Append(publicaccess); 112 flags.Attributes.Append(publicaccess);
111 113
112
113 estatedata.AppendChild(flags); 114 estatedata.AppendChild(flags);
114 115
115
116 this.Stale = false; 116 this.Stale = false;
117 return estatedata; 117 return estatedata;
118 } 118 }