From 53e83e5dbb3590cb9c858aa301665357d1511b30 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sun, 10 Jan 2010 16:20:59 -0800 Subject: * Starting to clean the house... * Fixed circular dependency --- OpenSim/Framework/Serialization/External/UserProfileSerializer.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Framework/Serialization/External') 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 public const int MAJOR_VERSION = 0; public const int MINOR_VERSION = 1; - public static string Serialize(UserAccount profile) + public static string Serialize(UUID userID, string firstName, string lastName) { StringWriter sw = new StringWriter(); XmlTextWriter xtw = new XmlTextWriter(sw); @@ -52,8 +52,8 @@ namespace OpenSim.Framework.Serialization.External xtw.WriteAttributeString("major_version", MAJOR_VERSION.ToString()); xtw.WriteAttributeString("minor_version", MINOR_VERSION.ToString()); - xtw.WriteElementString("name", profile.FirstName + " " + profile.LastName); - xtw.WriteElementString("id", profile.PrincipalID.ToString()); + xtw.WriteElementString("name", firstName + " " + lastName); + xtw.WriteElementString("id", userID.ToString()); xtw.WriteElementString("about", ""); // Not sure if we're storing this yet, need to take a look -- cgit v1.1