diff options
author | Melanie | 2010-09-05 15:06:00 +0100 |
---|---|---|
committer | Melanie | 2010-09-05 15:06:00 +0100 |
commit | e4c2b44e5cb756b957a96d13ad9a611dfba12df4 (patch) | |
tree | d7978fc31ce346cae467df7a81737cfa323ae6c1 /OpenSim/Framework/RegionInfo.cs | |
parent | Remove "Dwell" support from core and replace it with calls to methods (diff) | |
parent | Remove "Dwell" support from core and replace it with calls to methods (diff) | |
download | opensim-SC-e4c2b44e5cb756b957a96d13ad9a611dfba12df4.zip opensim-SC-e4c2b44e5cb756b957a96d13ad9a611dfba12df4.tar.gz opensim-SC-e4c2b44e5cb756b957a96d13ad9a611dfba12df4.tar.bz2 opensim-SC-e4c2b44e5cb756b957a96d13ad9a611dfba12df4.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Framework/RegionInfo.cs')
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index ec25118..e36a72b 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -806,7 +806,7 @@ namespace OpenSim.Framework | |||
806 | IConfig config = source.Configs[RegionName]; | 806 | IConfig config = source.Configs[RegionName]; |
807 | 807 | ||
808 | if (config != null) | 808 | if (config != null) |
809 | source.Configs.Remove(RegionName); | 809 | source.Configs.Remove(config); |
810 | 810 | ||
811 | config = source.AddConfig(RegionName); | 811 | config = source.AddConfig(RegionName); |
812 | 812 | ||
@@ -865,10 +865,15 @@ namespace OpenSim.Framework | |||
865 | 865 | ||
866 | return; | 866 | return; |
867 | } | 867 | } |
868 | configMember = new ConfigurationMember(filename, description, loadConfigurationOptionsFromMe, | 868 | else if (filename.ToLower().EndsWith(".xml")) |
869 | ignoreIncomingConfiguration, false); | 869 | { |
870 | configMember.performConfigurationRetrieve(); | 870 | configMember = new ConfigurationMember(filename, description, loadConfigurationOptionsFromMe, |
871 | RegionFile = filename; | 871 | ignoreIncomingConfiguration, false); |
872 | configMember.performConfigurationRetrieve(); | ||
873 | RegionFile = filename; | ||
874 | } | ||
875 | else | ||
876 | throw new Exception("Invalid file type for region persistence."); | ||
872 | } | 877 | } |
873 | 878 | ||
874 | public void loadConfigurationOptionsFromMe() | 879 | public void loadConfigurationOptionsFromMe() |