aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/ConfigurationLoader.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/OpenSim/Region/Application/ConfigurationLoader.cs b/OpenSim/Region/Application/ConfigurationLoader.cs
index 6e3d6af..d246181 100644
--- a/OpenSim/Region/Application/ConfigurationLoader.cs
+++ b/OpenSim/Region/Application/ConfigurationLoader.cs
@@ -180,6 +180,7 @@ namespace OpenSim
180 { 180 {
181 if (ReadConfig(sources[i])) 181 if (ReadConfig(sources[i]))
182 iniFileExists = true; 182 iniFileExists = true;
183
183 AddIncludes(sources); 184 AddIncludes(sources);
184 } 185 }
185 186
@@ -235,10 +236,19 @@ namespace OpenSim
235 string path = Path.Combine(basepath, chunkWithoutWildcards); 236 string path = Path.Combine(basepath, chunkWithoutWildcards);
236 path = Path.GetFullPath(path) + chunkWithWildcards; 237 path = Path.GetFullPath(path) + chunkWithWildcards;
237 string[] paths = Util.Glob(path); 238 string[] paths = Util.Glob(path);
238 foreach (string p in paths) 239
240 // If the include path contains no wildcards, then warn the user that it wasn't found.
241 if (wildcardIndex == -1 && paths.Length == 0)
239 { 242 {
240 if (!sources.Contains(p)) 243 m_log.WarnFormat("[CONFIG]: Could not find include file {0}", path);
241 sources.Add(p); 244 }
245 else
246 {
247 foreach (string p in paths)
248 {
249 if (!sources.Contains(p))
250 sources.Add(p);
251 }
242 } 252 }
243 } 253 }
244 } 254 }