Entity now freemarker compliant, freemarker lib update, deprecation of HTMLTemplatePr...
[mir.git] / source / mircoders / entity / EntityComment.java
index 53f3577..e599d8e 100755 (executable)
@@ -19,7 +19,7 @@ import mir.storage.*;
  */
 
 
-public class EntityComment extends AbstractEntity implements Entity
+public class EntityComment extends Entity
 {
   private static int instances;
 
@@ -34,13 +34,6 @@ public class EntityComment extends AbstractEntity implements Entity
     setStorage(theStorage);
   }
 
-  public HashMap getValues() {
-    HashMap returnHash = super.getValues();
-    String create = (String)returnHash.get("webdb_create");
-    returnHash.put("date",StringUtil.dateToReadableDate(create));
-
-    return returnHash;
-  }
 
   /**
    * overridden method setValues to patch creator_main_url
@@ -51,19 +44,16 @@ public class EntityComment extends AbstractEntity implements Entity
       if (!theStringValues.containsKey("is_published")) {
        theStringValues.put("is_published","0");
                        }
-                   
+
                        if (theStringValues.containsKey("main_url")){
-                               theLog.printDebugInfo("------------------ http");
                                if (((String)theStringValues.get("main_url")).equalsIgnoreCase("http://")) {
-                                       theLog.printDebugInfo("laenge1: "+((String)theStringValues.get("main_url")).length());
                                        theStringValues.remove("main_url");
                                } else if ((!((String)theStringValues.get("main_url")).startsWith("http://"))
                                                                        && ((String)theStringValues.get("main_url")).length()>0){
-                                       theLog.printDebugInfo("laenge2: "+((String)theStringValues.get("main_url")).length());
                                        theStringValues.put("main_url","http://"+((String)theStringValues.get("main_url")));
                                }
                        }
-                       
+
     }
     super.setValues(theStringValues);
   }