aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Serialization
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Serialization/External/UserProfileSerializer.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs b/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs
index fb269b7..de106b2 100644
--- a/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs
+++ b/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs
@@ -29,6 +29,7 @@ using System.IO;
29using System.Xml; 29using System.Xml;
30using OpenMetaverse; 30using OpenMetaverse;
31using OpenSim.Framework; 31using OpenSim.Framework;
32using OpenSim.Services.Interfaces;
32 33
33namespace OpenSim.Framework.Serialization.External 34namespace OpenSim.Framework.Serialization.External
34{ 35{
@@ -40,7 +41,7 @@ namespace OpenSim.Framework.Serialization.External
40 public const int MAJOR_VERSION = 0; 41 public const int MAJOR_VERSION = 0;
41 public const int MINOR_VERSION = 1; 42 public const int MINOR_VERSION = 1;
42 43
43 public static string Serialize(UserProfileData profile) 44 public static string Serialize(UserAccount profile)
44 { 45 {
45 StringWriter sw = new StringWriter(); 46 StringWriter sw = new StringWriter();
46 XmlTextWriter xtw = new XmlTextWriter(sw); 47 XmlTextWriter xtw = new XmlTextWriter(sw);
@@ -51,9 +52,9 @@ namespace OpenSim.Framework.Serialization.External
51 xtw.WriteAttributeString("major_version", MAJOR_VERSION.ToString()); 52 xtw.WriteAttributeString("major_version", MAJOR_VERSION.ToString());
52 xtw.WriteAttributeString("minor_version", MINOR_VERSION.ToString()); 53 xtw.WriteAttributeString("minor_version", MINOR_VERSION.ToString());
53 54
54 xtw.WriteElementString("name", profile.Name); 55 xtw.WriteElementString("name", profile.FirstName + " " + profile.LastName);
55 xtw.WriteElementString("id", profile.ID.ToString()); 56 xtw.WriteElementString("id", profile.PrincipalID.ToString());
56 xtw.WriteElementString("about", profile.AboutText); 57 xtw.WriteElementString("about", "");
57 58
58 // Not sure if we're storing this yet, need to take a look 59 // Not sure if we're storing this yet, need to take a look
59// xtw.WriteElementString("Url", profile.Url); 60// xtw.WriteElementString("Url", profile.Url);