aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Serialization
diff options
context:
space:
mode:
authorDiva Canto2010-01-10 16:20:59 -0800
committerDiva Canto2010-01-10 16:20:59 -0800
commit53e83e5dbb3590cb9c858aa301665357d1511b30 (patch)
tree732c828f49c3c54dc49bcd6eec86153ab76bc8ae /OpenSim/Framework/Serialization
parentSome typos fixed related to master avie removal (diff)
downloadopensim-SC_OLD-53e83e5dbb3590cb9c858aa301665357d1511b30.zip
opensim-SC_OLD-53e83e5dbb3590cb9c858aa301665357d1511b30.tar.gz
opensim-SC_OLD-53e83e5dbb3590cb9c858aa301665357d1511b30.tar.bz2
opensim-SC_OLD-53e83e5dbb3590cb9c858aa301665357d1511b30.tar.xz
* Starting to clean the house...
* Fixed circular dependency
Diffstat (limited to 'OpenSim/Framework/Serialization')
-rw-r--r--OpenSim/Framework/Serialization/External/UserProfileSerializer.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs b/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs
index de106b2..a8ffa17 100644
--- a/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs
+++ b/OpenSim/Framework/Serialization/External/UserProfileSerializer.cs
@@ -41,7 +41,7 @@ namespace OpenSim.Framework.Serialization.External
41 public const int MAJOR_VERSION = 0; 41 public const int MAJOR_VERSION = 0;
42 public const int MINOR_VERSION = 1; 42 public const int MINOR_VERSION = 1;
43 43
44 public static string Serialize(UserAccount profile) 44 public static string Serialize(UUID userID, string firstName, string lastName)
45 { 45 {
46 StringWriter sw = new StringWriter(); 46 StringWriter sw = new StringWriter();
47 XmlTextWriter xtw = new XmlTextWriter(sw); 47 XmlTextWriter xtw = new XmlTextWriter(sw);
@@ -52,8 +52,8 @@ namespace OpenSim.Framework.Serialization.External
52 xtw.WriteAttributeString("major_version", MAJOR_VERSION.ToString()); 52 xtw.WriteAttributeString("major_version", MAJOR_VERSION.ToString());
53 xtw.WriteAttributeString("minor_version", MINOR_VERSION.ToString()); 53 xtw.WriteAttributeString("minor_version", MINOR_VERSION.ToString());
54 54
55 xtw.WriteElementString("name", profile.FirstName + " " + profile.LastName); 55 xtw.WriteElementString("name", firstName + " " + lastName);
56 xtw.WriteElementString("id", profile.PrincipalID.ToString()); 56 xtw.WriteElementString("id", userID.ToString());
57 xtw.WriteElementString("about", ""); 57 xtw.WriteElementString("about", "");
58 58
59 // 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