aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs')
-rw-r--r--OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs b/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs
index 8269d36..df797a5 100644
--- a/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs
+++ b/OpenSim/Services/HypergridService/HGSuitcaseInventoryService.cs
@@ -156,9 +156,9 @@ namespace OpenSim.Services.HypergridService
156 if (suitcase == null) 156 if (suitcase == null)
157 { 157 {
158 m_log.DebugFormat("[HG SUITCASE INVENTORY SERVICE]: User {0} does not have a Suitcase folder. Creating it...", principalID); 158 m_log.DebugFormat("[HG SUITCASE INVENTORY SERVICE]: User {0} does not have a Suitcase folder. Creating it...", principalID);
159 // make one, and let's add it to the user's inventory as a direct child of the root folder 159 // Create the My Suitcase folder under the user's root folder.
160 // In the DB we tag it as type 100, but we use -1 (Unknown) outside 160 // In the DB we tag it as type 100, but we use type 8 (Folder) outside, as this affects the sort order.
161 suitcase = CreateFolder(principalID, root.folderID, 100, "My Suitcase"); 161 suitcase = CreateFolder(principalID, root.folderID, InventoryItemBase.SUITCASE_FOLDER_TYPE, InventoryItemBase.SUITCASE_FOLDER_NAME);
162 if (suitcase == null) 162 if (suitcase == null)
163 { 163 {
164 m_log.ErrorFormat("[HG SUITCASE INVENTORY SERVICE]: Unable to create suitcase folder"); 164 m_log.ErrorFormat("[HG SUITCASE INVENTORY SERVICE]: Unable to create suitcase folder");
@@ -464,7 +464,7 @@ namespace OpenSim.Services.HypergridService
464 // Warp! Root folder for travelers 464 // Warp! Root folder for travelers
465 XInventoryFolder[] folders = m_Database.GetFolders( 465 XInventoryFolder[] folders = m_Database.GetFolders(
466 new string[] { "agentID", "type" }, 466 new string[] { "agentID", "type" },
467 new string[] { principalID.ToString(), "100" }); // This is a special folder type... 467 new string[] { principalID.ToString(), InventoryItemBase.SUITCASE_FOLDER_TYPE.ToString() }); // This is a special folder type...
468 468
469 if (folders != null && folders.Length > 0) 469 if (folders != null && folders.Length > 0)
470 return folders[0]; 470 return folders[0];
@@ -472,13 +472,13 @@ namespace OpenSim.Services.HypergridService
472 // check to see if we have the old Suitcase folder 472 // check to see if we have the old Suitcase folder
473 folders = m_Database.GetFolders( 473 folders = m_Database.GetFolders(
474 new string[] { "agentID", "folderName", "parentFolderID" }, 474 new string[] { "agentID", "folderName", "parentFolderID" },
475 new string[] { principalID.ToString(), "My Suitcase", UUID.Zero.ToString() }); 475 new string[] { principalID.ToString(), InventoryItemBase.SUITCASE_FOLDER_NAME, UUID.Zero.ToString() });
476 if (folders != null && folders.Length > 0) 476 if (folders != null && folders.Length > 0)
477 { 477 {
478 // Move it to under the root folder 478 // Move it to under the root folder
479 XInventoryFolder root = GetRootXFolder(principalID); 479 XInventoryFolder root = GetRootXFolder(principalID);
480 folders[0].parentFolderID = root.folderID; 480 folders[0].parentFolderID = root.folderID;
481 folders[0].type = 100; 481 folders[0].type = InventoryItemBase.SUITCASE_FOLDER_TYPE;
482 m_Database.StoreFolder(folders[0]); 482 m_Database.StoreFolder(folders[0]);
483 return folders[0]; 483 return folders[0];
484 } 484 }
@@ -488,7 +488,7 @@ namespace OpenSim.Services.HypergridService
488 488
489 private void SetAsNormalFolder(XInventoryFolder suitcase) 489 private void SetAsNormalFolder(XInventoryFolder suitcase)
490 { 490 {
491 suitcase.type = (short)AssetType.Folder; 491 suitcase.type = InventoryItemBase.SUITCASE_FOLDER_FAKE_TYPE;
492 } 492 }
493 493
494 private List<XInventoryFolder> GetFolderTree(UUID principalID, UUID folder) 494 private List<XInventoryFolder> GetFolderTree(UUID principalID, UUID folder)