neue forms
[mir.git] / source / mircoders / producer / ProducerWap.java
index fc186c7..282c85b 100755 (executable)
@@ -24,13 +24,14 @@ public class ProducerWap extends Producer {
 
        // Initialierung
        static {
-               wapTemplate = Configuration.getProperty("Producer.Wap.Template");
-               itemsPerPage = Integer.parseInt(Configuration.getProperty("Producer.Wap.Items"));
+               wapTemplate = MirConfig.getProp("Producer.Wap.Template");
+               itemsPerPage = Integer.parseInt(MirConfig.getProp("Producer.Wap.Items"));
        }
 
        public static void main(String argv[]){
                try {
-                       Configuration.initConfig(argv[0]);
+            // do we need the following? -mh <heckmann@hbe.ca>
+                       //Configuration.initConfig(argv[0]);
                        new ProducerWap().handle(new PrintWriter(System.out), null);
                } catch(Exception e) {
                        System.err.println(e.toString());
@@ -82,7 +83,7 @@ public class ProducerWap extends Producer {
                try {
                        InputStream is = new FileInputStream(producerStorageRoot+xmlFileName);
                        OutputStream os = new FileOutputStream(producerStorageRoot+wmlFileName);
-                       String contentXsl = Configuration.getProperty("Home") + "templates/" + Configuration.getProperty("Xsl.Wap");
+                       String contentXsl = MirConfig.getProp("Home") + "templates/" + MirConfig.getProp("Xsl.Wap");
                        logHTML(htmlout,"using style " + contentXsl);
                        styler.style(contentXsl,is,os);
       is.close();