diff options
-rw-r--r-- | OpenSim/Framework/Communications/InventoryServiceBase.cs | 20 | ||||
-rw-r--r-- | OpenSim/Region/Communications/Local/LocalInventoryService.cs | 2 |
2 files changed, 9 insertions, 13 deletions
diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index 78de4a5..595fa65 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs | |||
@@ -110,18 +110,9 @@ namespace OpenSim.Framework.Communications | |||
110 | } | 110 | } |
111 | 111 | ||
112 | // See IInventoryServices | 112 | // See IInventoryServices |
113 | public InventoryFolderBase RequestUsersRoot(LLUUID userID) | ||
114 | { | ||
115 | foreach (KeyValuePair<string, IInventoryData> plugin in m_plugins) | ||
116 | { | ||
117 | return plugin.Value.getUserRootFolder(userID); | ||
118 | } | ||
119 | return null; | ||
120 | } | ||
121 | |||
122 | // See IInventoryServices | ||
123 | public void MoveInventoryFolder(LLUUID userID, InventoryFolderBase folder) | 113 | public void MoveInventoryFolder(LLUUID userID, InventoryFolderBase folder) |
124 | { | 114 | { |
115 | // FIXME: Probably doesn't do what was originally intended - only ever queries the first plugin | ||
125 | foreach (KeyValuePair<string, IInventoryData> plugin in m_plugins) | 116 | foreach (KeyValuePair<string, IInventoryData> plugin in m_plugins) |
126 | { | 117 | { |
127 | plugin.Value.moveInventoryFolder(folder); | 118 | plugin.Value.moveInventoryFolder(folder); |
@@ -137,7 +128,12 @@ namespace OpenSim.Framework.Communications | |||
137 | // See IInventoryServices | 128 | // See IInventoryServices |
138 | public InventoryFolderBase RequestRootFolder(LLUUID userID) | 129 | public InventoryFolderBase RequestRootFolder(LLUUID userID) |
139 | { | 130 | { |
140 | return RequestUsersRoot(userID); | 131 | // FIXME: Probably doesn't do what was originally intended - only ever queries the first plugin |
132 | foreach (KeyValuePair<string, IInventoryData> plugin in m_plugins) | ||
133 | { | ||
134 | return plugin.Value.getUserRootFolder(userID); | ||
135 | } | ||
136 | return null; | ||
141 | } | 137 | } |
142 | 138 | ||
143 | // See IInventoryServices | 139 | // See IInventoryServices |
@@ -149,7 +145,7 @@ namespace OpenSim.Framework.Communications | |||
149 | // See IInventoryServices | 145 | // See IInventoryServices |
150 | public void CreateNewUserInventory(LLUUID user) | 146 | public void CreateNewUserInventory(LLUUID user) |
151 | { | 147 | { |
152 | InventoryFolderBase existingRootFolder = RequestUsersRoot(user); | 148 | InventoryFolderBase existingRootFolder = RequestRootFolder(user); |
153 | 149 | ||
154 | if (null != existingRootFolder) | 150 | if (null != existingRootFolder) |
155 | { | 151 | { |
diff --git a/OpenSim/Region/Communications/Local/LocalInventoryService.cs b/OpenSim/Region/Communications/Local/LocalInventoryService.cs index 3396d5c..f154cd8 100644 --- a/OpenSim/Region/Communications/Local/LocalInventoryService.cs +++ b/OpenSim/Region/Communications/Local/LocalInventoryService.cs | |||
@@ -88,7 +88,7 @@ namespace OpenSim.Region.Communications.Local | |||
88 | 88 | ||
89 | public override bool HasInventoryForUser(LLUUID userID) | 89 | public override bool HasInventoryForUser(LLUUID userID) |
90 | { | 90 | { |
91 | InventoryFolderBase root = RequestUsersRoot(userID); | 91 | InventoryFolderBase root = RequestRootFolder(userID); |
92 | if (root == null) | 92 | if (root == null) |
93 | { | 93 | { |
94 | return false; | 94 | return false; |