From 682ec53420ffac9918febc12b7140363602812e5 Mon Sep 17 00:00:00 2001 From: MW Date: Thu, 26 Jun 2008 17:20:08 +0000 Subject: As per the suggestion on the mailing list, added support for a OpenSim.xml config file, instead of a ini file. INI files still work the same as they did before, just now if a ini file isn't found, it looks for a OpenSim.xml file (of course in xml format) and if found uses that. Includes a OpenSim.Example.xml for reference (the default settings saved as a xml file). --- OpenSim/ApplicationPlugins/Rest/RestPlugin.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/ApplicationPlugins/Rest/RestPlugin.cs') diff --git a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs index e4bd544..60a7d27 100644 --- a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs +++ b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs @@ -203,7 +203,7 @@ namespace OpenSim.ApplicationPlugins.Rest try { - if ((_config = openSim.ConfigSource.Configs["RestPlugins"]) == null) + if ((_config = openSim.ConfigSource.ConfigSource.Configs["RestPlugins"]) == null) { m_log.WarnFormat("{0} Rest Plugins not configured", MsgID); return; @@ -225,7 +225,7 @@ namespace OpenSim.ApplicationPlugins.Rest _prefix = _config.GetString("prefix", "/admin"); // Get plugin specific config - _pluginConfig = openSim.ConfigSource.Configs[ConfigName]; + _pluginConfig = openSim.ConfigSource.ConfigSource.Configs[ConfigName]; m_log.InfoFormat("{0} Rest Plugins Enabled", MsgID); -- cgit v1.1