From 0138fdc5fddbe30924484686716465984e8f59c2 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 2 Jan 2009 17:41:12 +0000 Subject: Allow some values that are set in OpenSim.ini to be set from region config XML as well. --- OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Framework/RegionLoader/Web') diff --git a/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs b/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs index 029d396..60242e6 100644 --- a/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs +++ b/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs @@ -39,23 +39,23 @@ namespace OpenSim.Framework.RegionLoader.Web { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); - private IConfigSource m_configSouce; + private IConfigSource m_configSource; public void SetIniConfigSource(IConfigSource configSource) { - m_configSouce = configSource; + m_configSource = configSource; } public RegionInfo[] LoadRegions() { - if (m_configSouce == null) + if (m_configSource == null) { m_log.Error("[WEBLOADER]: Unable to load configuration source!"); return null; } else { - IConfig startupConfig = (IConfig) m_configSouce.Configs["Startup"]; + IConfig startupConfig = (IConfig) m_configSource.Configs["Startup"]; string url = startupConfig.GetString("regionload_webserver_url", String.Empty).Trim(); if (url == String.Empty) { @@ -89,7 +89,7 @@ namespace OpenSim.Framework.RegionLoader.Web { m_log.Debug(xmlDoc.FirstChild.ChildNodes[i].OuterXml); regionInfos[i] = - new RegionInfo("REGION CONFIG #" + (i + 1), xmlDoc.FirstChild.ChildNodes[i],false); + new RegionInfo("REGION CONFIG #" + (i + 1), xmlDoc.FirstChild.ChildNodes[i],false,m_configSource); } return regionInfos; -- cgit v1.1