diff options
| -rw-r--r-- | BitBoard.php | 8 | ||||
| -rw-r--r-- | BitBoardPost.php | 4 | ||||
| -rw-r--r-- | BitBoardTopic.php | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/BitBoard.php b/BitBoard.php index eaa0e55..6c9a7ce 100644 --- a/BitBoard.php +++ b/BitBoard.php @@ -121,7 +121,7 @@ class BitBoard extends LibertyMime { function store( &$pParamHash ) { if( $this->verify( $pParamHash )&& LibertyMime::store( $pParamHash ) ) { $table = BIT_DB_PREFIX."boards"; - $this->mDb->StartTrans(); + $this->StartTrans(); if( $this->mBitBoardId ) { $locId = array( "board_id" => $pParamHash['board_id'] ); $result = $this->mDb->associateUpdate( $table, $pParamHash['board_store'], $locId ); @@ -160,7 +160,7 @@ class BitBoard extends LibertyMime { } if( count( $this->mErrors ) == 0 ) { - $this->mDb->CompleteTrans(); + $this->CompleteTrans(); $this->load(); } else { $this->mDb->RollbackTrans(); @@ -275,7 +275,7 @@ class BitBoard extends LibertyMime { function expunge() { $ret = FALSE; if( $this->isValid() ) { - $this->mDb->StartTrans(); + $this->StartTrans(); $mailingList = $this->getPreference( 'boards_mailing_list' ); $query = "DELETE FROM `".BIT_DB_PREFIX."boards_map` WHERE `board_content_id` = ?"; $result = $this->mDb->query( $query, array( $this->mContentId ) ); @@ -289,7 +289,7 @@ class BitBoard extends LibertyMime { } } $ret = TRUE; - $this->mDb->CompleteTrans(); + $this->CompleteTrans(); } else { $this->mDb->RollbackTrans(); } diff --git a/BitBoardPost.php b/BitBoardPost.php index 07addde..c40d4cb 100644 --- a/BitBoardPost.php +++ b/BitBoardPost.php @@ -115,10 +115,10 @@ class BitBoardPost extends LibertyComment { function expunge() { $ret = FALSE; if( $this->isValid() ) { - $this->mDb->StartTrans(); + $this->StartTrans(); // parent actually has deletion of rows in boards for constraint reasons if( parent::expunge() ) { - $this->mDb->CompleteTrans(); + $this->CompleteTrans(); $ret = TRUE; } else { $this->mDb->RollbackTrans(); diff --git a/BitBoardTopic.php b/BitBoardTopic.php index 9fa73f7..ce0deaf 100644 --- a/BitBoardTopic.php +++ b/BitBoardTopic.php @@ -263,7 +263,7 @@ class BitBoardTopic extends LibertyMime { function moveTo($board_id) { // start transaction - $this->mDb->StartTrans(); + $this->StartTrans(); // create a new comment letting people know it has beem moved $lcom = new LibertyComment(); @@ -291,7 +291,7 @@ class BitBoardTopic extends LibertyMime { $result = $this->mDb->query( $query, array( $board_id ) ); // end transaction - $this->mDb->CompleteTrans(); + $this->CompleteTrans(); return TRUE; } |
