From 1c64ab32e066d826128f47891223a9f1e35b9982 Mon Sep 17 00:00:00 2001 From: wjames5 Date: Wed, 17 Jun 2009 23:24:52 +0000 Subject: Mime is parent - comment out weird call to expungeMetaData until can be explored makes no sense as is --- LibertyComment.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/LibertyComment.php b/LibertyComment.php index 05cd974..7e7fea1 100644 --- a/LibertyComment.php +++ b/LibertyComment.php @@ -3,7 +3,7 @@ * Management of Liberty Content * * @package liberty - * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyComment.php,v 1.83 2009/05/15 18:14:56 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyComment.php,v 1.84 2009/06/17 23:24:52 wjames5 Exp $ * @author spider */ @@ -223,11 +223,17 @@ class LibertyComment extends LibertyMime { $sql = "DELETE FROM `".BIT_DB_PREFIX."liberty_comments` WHERE `comment_id` = ?"; $rs = $this->mDb->query($sql, array($this->mCommentId)); + /* + * TODO: figureout why this is even here. Mime should handle this and it needs to pass in mandatory attachmentId + * Slated to delete for now - wjames5 + */ + /* if (method_exists($this,'expungeMetaData')) { $this->expungeMetaData(); } + */ - if( LibertyAttachable::expunge() ) { + if( LibertyMime::expunge() ) { $ret = TRUE; $this->mDb->CompleteTrans(); } else { @@ -267,12 +273,17 @@ class LibertyComment extends LibertyMime { $sql = "DELETE FROM `".BIT_DB_PREFIX."liberty_comments` WHERE `comment_id` = ?"; $rs = $this->mDb->query($sql, array($this->mCommentId)); + /* + * TODO: figureout why this is even here. Mime should handle this and it needs to pass in mandatory attachmentId + * Slated to delete for now - wjames5 + */ + /* if (method_exists($this,'expungeMetaData')) { - // TODO: needs to pass in mandatory attachmentId, where does it come from? - spiderr $this->expungeMetaData(); } + */ - if( LibertyAttachable::expunge() ) { + if( LibertyMime::expunge() ) { $ret = TRUE; $this->mDb->CompleteTrans(); } else { -- cgit v1.3