X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmircoders%2Fentity%2FEntityComment.java;h=e599d8ef186f48c058f16b0dd424e1bff5b103e1;hb=c2de098f815705a7b6b2f13e14c16576998d39ab;hp=53f357788d0e01515e9ab7702b1273cc6e291c66;hpb=e4ff240ab43563d5b18b07683d1552215d1b4d35;p=mir.git diff --git a/source/mircoders/entity/EntityComment.java b/source/mircoders/entity/EntityComment.java index 53f35778..e599d8ef 100755 --- a/source/mircoders/entity/EntityComment.java +++ b/source/mircoders/entity/EntityComment.java @@ -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); }