1.3 jvm compatibility fixes
[mir.git] / source / mircoders / entity / EntityComment.java
index 022ccfe..2e9e8db 100755 (executable)
@@ -41,7 +41,7 @@ import mircoders.storage.DatabaseContent;
  * This class maps one line of the comment-table to a java-object.
  *
  * @author $Author: zapata $
- * @version $Revision: 1.16.2.6 $ $Date: 2005/03/26 11:26:26 $
+ * @version $Revision: 1.16.2.7 $ $Date: 2005/10/30 00:46:58 $
  */
 
 
@@ -75,8 +75,7 @@ public class EntityComment extends AbstractEntity {
   /**
    * Deattaches media from a comment
    */
-  public void dettach(String aCommentId,String aMediaId) throws DatabaseFailure
-  {
+  public void dettach(String aCommentId,String aMediaId) throws DatabaseFailure {
     if (aMediaId!=null){
       DatabaseCommentToMedia.getInstance().delete(aCommentId, aMediaId);
       DatabaseContent.getInstance().setUnproduced("id="+getFieldValue("to_media"));
@@ -94,7 +93,7 @@ public class EntityComment extends AbstractEntity {
       DatabaseContent.getInstance().setUnproduced("id="+getFieldValue("to_media"));
     }
     else {
-      logger.error("EntityContent: attach without mid");
+      getLogger().error("EntityContent: attach without mid");
     }
   }
 }