summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Bello <tylerbello@users.sourceforge.net>2009-09-24 17:41:08 +0000
committerTyler Bello <tylerbello@users.sourceforge.net>2009-09-24 17:41:08 +0000
commit7c74f554c9cba3cd20ea03c5238513c2ed71db86 (patch)
tree5ba2ef29151defea0e85a92839960335cf6a9a51
parent46666cb13daf33f28367be98f18d9966147a5e60 (diff)
downloadliberty-7c74f554c9cba3cd20ea03c5238513c2ed71db86.tar.gz
liberty-7c74f554c9cba3cd20ea03c5238513c2ed71db86.tar.bz2
liberty-7c74f554c9cba3cd20ea03c5238513c2ed71db86.zip
Fix to content_guid setting in storeComment. Didnt allow for alternate guids of derived types
-rw-r--r--LibertyComment.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/LibertyComment.php b/LibertyComment.php
index fef06a2..39744fd 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.88 2009/09/15 14:34:57 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyComment.php,v 1.89 2009/09/24 17:41:08 tylerbello Exp $
* @author spider <spider@steelsun.com>
*/
@@ -37,6 +37,7 @@ class LibertyComment extends LibertyMime {
$this->mCommentId = $pCommentId;
$this->mContentId = $pContentId;
$this->mInfo = $pInfo;
+ $this->mContentTypeGuid = BITCOMMENT_CONTENT_TYPE_GUID;
$this->mAdminContentPerm = 'p_liberty_admin_comments';
$this->mRootObj = NULL;
@@ -151,7 +152,7 @@ class LibertyComment extends LibertyMime {
}
function storeComment( &$pParamHash ) {
- $pParamHash['content_type_guid'] = BITCOMMENT_CONTENT_TYPE_GUID;
+
$this->mDb->StartTrans();
if( $this->verifyComment($pParamHash) && LibertyMime::store( $pParamHash ) ) {