diff options
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Serialization')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs index 3f24991..c776fa5 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |||
@@ -54,7 +54,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
54 | /// Deserialize a scene object from the original xml format | 54 | /// Deserialize a scene object from the original xml format |
55 | /// </summary> | 55 | /// </summary> |
56 | /// <param name="xmlData"></param> | 56 | /// <param name="xmlData"></param> |
57 | /// <returns></returns> | 57 | /// <returns>The scene object deserialized. Null on failure.</returns> |
58 | public static SceneObjectGroup FromOriginalXmlFormat(string xmlData) | 58 | public static SceneObjectGroup FromOriginalXmlFormat(string xmlData) |
59 | { | 59 | { |
60 | //m_log.DebugFormat("[SOG]: Starting deserialization of SOG"); | 60 | //m_log.DebugFormat("[SOG]: Starting deserialization of SOG"); |
@@ -1147,12 +1147,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1147 | 1147 | ||
1148 | if (sop.CreatorData != null && sop.CreatorData != string.Empty) | 1148 | if (sop.CreatorData != null && sop.CreatorData != string.Empty) |
1149 | writer.WriteElementString("CreatorData", sop.CreatorData); | 1149 | writer.WriteElementString("CreatorData", sop.CreatorData); |
1150 | else if (options.ContainsKey("profile")) | 1150 | else if (options.ContainsKey("home")) |
1151 | { | 1151 | { |
1152 | if (m_UserManagement == null) | 1152 | if (m_UserManagement == null) |
1153 | m_UserManagement = sop.ParentGroup.Scene.RequestModuleInterface<IUserManagement>(); | 1153 | m_UserManagement = sop.ParentGroup.Scene.RequestModuleInterface<IUserManagement>(); |
1154 | string name = m_UserManagement.GetUserName(sop.CreatorID); | 1154 | string name = m_UserManagement.GetUserName(sop.CreatorID); |
1155 | writer.WriteElementString("CreatorData", (string)options["profile"] + "/" + sop.CreatorID + ";" + name); | 1155 | writer.WriteElementString("CreatorData", (string)options["home"] + ";" + name); |
1156 | } | 1156 | } |
1157 | 1157 | ||
1158 | WriteUUID(writer, "FolderID", sop.FolderID, options); | 1158 | WriteUUID(writer, "FolderID", sop.FolderID, options); |
@@ -1298,12 +1298,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1298 | 1298 | ||
1299 | if (item.CreatorData != null && item.CreatorData != string.Empty) | 1299 | if (item.CreatorData != null && item.CreatorData != string.Empty) |
1300 | writer.WriteElementString("CreatorData", item.CreatorData); | 1300 | writer.WriteElementString("CreatorData", item.CreatorData); |
1301 | else if (options.ContainsKey("profile")) | 1301 | else if (options.ContainsKey("home")) |
1302 | { | 1302 | { |
1303 | if (m_UserManagement == null) | 1303 | if (m_UserManagement == null) |
1304 | m_UserManagement = scene.RequestModuleInterface<IUserManagement>(); | 1304 | m_UserManagement = scene.RequestModuleInterface<IUserManagement>(); |
1305 | string name = m_UserManagement.GetUserName(item.CreatorID); | 1305 | string name = m_UserManagement.GetUserName(item.CreatorID); |
1306 | writer.WriteElementString("CreatorData", (string)options["profile"] + "/" + item.CreatorID + ";" + name); | 1306 | writer.WriteElementString("CreatorData", (string)options["home"] + ";" + name); |
1307 | } | 1307 | } |
1308 | 1308 | ||
1309 | writer.WriteElementString("Description", item.Description); | 1309 | writer.WriteElementString("Description", item.Description); |