diff options
author | John Hurliman | 2010-09-03 14:50:42 -0700 |
---|---|---|
committer | John Hurliman | 2010-09-03 14:50:42 -0700 |
commit | 1e552e88e864da2e168fc4cf4df458688c1eab3d (patch) | |
tree | 0f3be001473ef0f1f1636749463c86591cb1b4e1 /OpenSim/Framework/RegionInfo.cs | |
parent | Make SimianFriendsServiceConnector initialize like the other connectors and g... (diff) | |
parent | In RemoveAdminPlugin, use a .ini file template in XmlRpcCreateRegionMethod ra... (diff) | |
download | opensim-SC_OLD-1e552e88e864da2e168fc4cf4df458688c1eab3d.zip opensim-SC_OLD-1e552e88e864da2e168fc4cf4df458688c1eab3d.tar.gz opensim-SC_OLD-1e552e88e864da2e168fc4cf4df458688c1eab3d.tar.bz2 opensim-SC_OLD-1e552e88e864da2e168fc4cf4df458688c1eab3d.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
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 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() |