first cut of merge of STABLE-pre1_0 into HEAD. I won't even guarantee that it
[mir.git] / source / mircoders / module / ModuleBreaking.java
index e00d295..4ae817c 100755 (executable)
@@ -34,11 +34,20 @@ public class ModuleBreaking extends AbstractModule
 
        public ModuleBreaking (StorageObject theStorage)
        {
-               if (theLog == null) theLog = Logfile.getInstance(this.getClass().getName());
+               if (theLog == null) theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Breaking.Logfile"));
                if (theStorage == null) theLog.printWarning("ModuleBreaking -- StorageObject was null!");
                this.theStorage = theStorage;
        }
 
        // Methoden
-
+  public EntityList getBreakingNews() {
+    EntityList returnList = null;
+    try {
+      returnList = getByWhereClause(null,"webdb_create desc",0,5);
+    }
+    catch (Exception ex) {
+      theLog.printWarning("--getBreakingNews(): could not fetch Breaking News" + ex.toString());
+    }
+    return returnList;
+  }
 }