contains only admin templates which should not be changed by users
[mir.git] / source / mir / misc / MirConfig.java
index 042ff63..b84c21b 100755 (executable)
@@ -76,10 +76,12 @@ public class MirConfig extends Configuration {
    */
   public static synchronized void initConfig(ServletContext ctx, String uri,
                                             String name, String confName) {
-    initConfResource(confName);
+
+    initConfResource(ctx.getRealPath("/WEB-INF/")+"/"+confName);
+
     configHash = new HashMap();
 
-    configHash.put("Home", ctx.getRealPath("/"));
+    configHash.put("Home", ctx.getRealPath("/WEB-INF/")+"/");
     configHash.put("ServletContext", ctx);
     configHash.put("RootUri", uri);
 
@@ -109,8 +111,6 @@ public class MirConfig extends Configuration {
     if (result==null)
       throw new ConfigException("config property '"+propName+"' not available!");
 
-
-
     return result;
   }