aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSimBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Application/OpenSimBase.cs')
-rw-r--r--OpenSim/Region/Application/OpenSimBase.cs12
1 files changed, 4 insertions, 8 deletions
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index feb3cf8..4c1914a 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -232,13 +232,9 @@ namespace OpenSim
232 module)); 232 module));
233 233
234 // Load the estate data service 234 // Load the estate data service
235 IConfig estateDataConfig = Config.Configs["EstateDataStore"]; 235 module = Util.GetConfigVarFromSections<string>(Config, "LocalServiceModule", new string[]{"EstateDataStore", "EstateService"}, String.Empty);
236 if (estateDataConfig == null)
237 throw new Exception("Configuration file is missing the [EstateDataStore] section. Have you copied OpenSim.ini.example to OpenSim.ini to reference config-include/ files?");
238
239 module = estateDataConfig.GetString("LocalServiceModule", String.Empty);
240 if (String.IsNullOrEmpty(module)) 236 if (String.IsNullOrEmpty(module))
241 throw new Exception("Configuration file is missing the LocalServiceModule parameter in the [EstateDataStore] section"); 237 throw new Exception("Configuration file is missing the LocalServiceModule parameter in the [EstateDataStore] or [EstateService] section");
242 238
243 m_estateDataService = ServerUtils.LoadPlugin<IEstateDataService>(module, new object[] { Config }); 239 m_estateDataService = ServerUtils.LoadPlugin<IEstateDataService>(module, new object[] { Config });
244 if (m_estateDataService == null) 240 if (m_estateDataService == null)
@@ -555,7 +551,7 @@ namespace OpenSim
555 else 551 else
556 { 552 {
557 regionInfo.EstateSettings.EstateOwner = account.PrincipalID; 553 regionInfo.EstateSettings.EstateOwner = account.PrincipalID;
558 regionInfo.EstateSettings.Save(); 554 m_estateDataService.StoreEstateSettings(regionInfo.EstateSettings);
559 } 555 }
560 } 556 }
561 557
@@ -950,7 +946,7 @@ namespace OpenSim
950 // back to the default. The reloading of estate settings by scene could be eliminated if it 946 // back to the default. The reloading of estate settings by scene could be eliminated if it
951 // knows that the passed in settings in RegionInfo are already valid. Also, it might be 947 // knows that the passed in settings in RegionInfo are already valid. Also, it might be
952 // possible to eliminate some additional later saves made by callers of this method. 948 // possible to eliminate some additional later saves made by callers of this method.
953 regInfo.EstateSettings.Save(); 949 EstateDataService.StoreEstateSettings(regInfo.EstateSettings);
954 950
955 return true; 951 return true;
956 } 952 }