diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/DataSnapshot/EstateSnapshot.cs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs index 5fff89f..8da9e8c 100644 --- a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs +++ b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs | |||
@@ -29,9 +29,10 @@ using System; | |||
29 | using System.Xml; | 29 | using System.Xml; |
30 | using OpenMetaverse; | 30 | using OpenMetaverse; |
31 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Framework.Communications.Cache; | 32 | |
33 | using OpenSim.Region.DataSnapshot.Interfaces; | 33 | using OpenSim.Region.DataSnapshot.Interfaces; |
34 | using OpenSim.Region.Framework.Scenes; | 34 | using OpenSim.Region.Framework.Scenes; |
35 | using OpenSim.Services.Interfaces; | ||
35 | 36 | ||
36 | namespace OpenSim.Region.DataSnapshot.Providers | 37 | namespace OpenSim.Region.DataSnapshot.Providers |
37 | { | 38 | { |
@@ -55,21 +56,17 @@ namespace OpenSim.Region.DataSnapshot.Providers | |||
55 | //Now in DataSnapshotProvider module form! | 56 | //Now in DataSnapshotProvider module form! |
56 | XmlNode estatedata = factory.CreateNode(XmlNodeType.Element, "estate", ""); | 57 | XmlNode estatedata = factory.CreateNode(XmlNodeType.Element, "estate", ""); |
57 | 58 | ||
58 | UUID ownerid = m_scene.RegionInfo.MasterAvatarAssignedUUID; | 59 | UUID ownerid = m_scene.RegionInfo.EstateSettings.EstateOwner; |
59 | if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero) | ||
60 | ownerid = m_scene.RegionInfo.EstateSettings.EstateOwner; | ||
61 | |||
62 | CachedUserInfo userInfo = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(ownerid); | ||
63 | 60 | ||
61 | UserAccount userInfo = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, ownerid); | ||
64 | //TODO: Change to query userserver about the master avatar UUID ? | 62 | //TODO: Change to query userserver about the master avatar UUID ? |
65 | String firstname; | 63 | String firstname; |
66 | String lastname; | 64 | String lastname; |
67 | 65 | ||
68 | if (userInfo != null) | 66 | if (userInfo != null) |
69 | { | 67 | { |
70 | UserProfileData userProfile = userInfo.UserProfile; | 68 | firstname = userInfo.FirstName; |
71 | firstname = userProfile.FirstName; | 69 | lastname = userInfo.LastName; |
72 | lastname = userProfile.SurName; | ||
73 | 70 | ||
74 | //TODO: Fix the marshalling system to have less copypasta gruntwork | 71 | //TODO: Fix the marshalling system to have less copypasta gruntwork |
75 | XmlNode user = factory.CreateNode(XmlNodeType.Element, "user", ""); | 72 | XmlNode user = factory.CreateNode(XmlNodeType.Element, "user", ""); |