small bugfixx at comment-module
[mir.git] / source / mircoders / module / ModuleTopics.java
index 837c2e4..546473f 100755 (executable)
@@ -9,15 +9,14 @@ import javax.servlet.http.*;
 
 import freemarker.template.*;
 
-import webdb.servlet.*;
-import webdb.module.*;
-import webdb.entity.*;
-import webdb.misc.*;
-import webdb.storage.*;
-
+import mir.servlet.*;
+import mir.module.*;
 import mir.entity.*;
+import mir.misc.*;
 import mir.storage.*;
 
+import mircoders.storage.*;
+
 /*
  *  ThemenModule -
  *
@@ -33,11 +32,15 @@ public class ModuleTopics extends AbstractModule
     public ModuleTopics(StorageObject theStorage) {
            this.theStorage = theStorage;
            if (theLog == null)
-             theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Module.Themen.Logfile"));
+             theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Themen.Logfile"));
     }
 
-    public SimpleList getTopicsAsSimpleList() {
-           return ((DatabaseTopics)theStorage).getPopupData();
+    public SimpleList getTopicsAsSimpleList() throws ModuleException {
+      try {
+             return ((DatabaseTopics)theStorage).getPopupData();
+      } catch(StorageObjectException e) {
+        throw new ModuleException(e.toString());
+      }
     }
 
 }