aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/RegionInfo.cs')
-rw-r--r--OpenSim/Framework/RegionInfo.cs15
1 files changed, 10 insertions, 5 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index ea1a594..12c58c3 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -805,7 +805,7 @@ namespace OpenSim.Framework
805 IConfig config = source.Configs[RegionName]; 805 IConfig config = source.Configs[RegionName];
806 806
807 if (config != null) 807 if (config != null)
808 source.Configs.Remove(RegionName); 808 source.Configs.Remove(config);
809 809
810 config = source.AddConfig(RegionName); 810 config = source.AddConfig(RegionName);
811 811
@@ -864,10 +864,15 @@ namespace OpenSim.Framework
864 864
865 return; 865 return;
866 } 866 }
867 configMember = new ConfigurationMember(filename, description, loadConfigurationOptionsFromMe, 867 else if (filename.ToLower().EndsWith(".xml"))
868 ignoreIncomingConfiguration, false); 868 {
869 configMember.performConfigurationRetrieve(); 869 configMember = new ConfigurationMember(filename, description, loadConfigurationOptionsFromMe,
870 RegionFile = filename; 870 ignoreIncomingConfiguration, false);
871 configMember.performConfigurationRetrieve();
872 RegionFile = filename;
873 }
874 else
875 throw new Exception("Invalid file type for region persistence.");
871 } 876 }
872 877
873 public void loadConfigurationOptionsFromMe() 878 public void loadConfigurationOptionsFromMe()