summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2016-06-22 21:04:32 +0100
committerlsces <lester@lsces.co.uk>2016-06-22 21:04:32 +0100
commit96d2cbec814c8b50141c7598ba1cc09e83720ed6 (patch)
tree644ed376af4645e51c6fddf37767c47efb266804
parent5e6b13d123a56bb1e4b3e9c30500f805e49facc8 (diff)
downloadarticles-96d2cbec814c8b50141c7598ba1cc09e83720ed6.tar.gz
articles-96d2cbec814c8b50141c7598ba1cc09e83720ed6.tar.bz2
articles-96d2cbec814c8b50141c7598ba1cc09e83720ed6.zip
change-all-StartTrans-calls-to-BitBase-method
-rw-r--r--BitArticle.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/BitArticle.php b/BitArticle.php
index 98ae73a..85b8e80 100644
--- a/BitArticle.php
+++ b/BitArticle.php
@@ -151,7 +151,7 @@ class BitArticle extends LibertyMime
public function store(&$pParamHash)
{
global $gBitSystem;
- $this->mDb->StartTrans();
+ $this->StartTrans();
if ( $this->verify( $pParamHash )&& LibertyMime::store( $pParamHash ) ) {
$table = BIT_DB_PREFIX."articles";
@@ -169,7 +169,7 @@ class BitArticle extends LibertyMime
$result = $this->mDb->associateInsert( $table, $pParamHash['article_store'] );
}
- $this->mDb->CompleteTrans();
+ $this->CompleteTrans();
$this->load();
}
return ( count( $this->mErrors ) == 0 );
@@ -410,14 +410,14 @@ class BitArticle extends LibertyMime
{
$ret = FALSE;
if ( $this->isValid() ) {
- $this->mDb->StartTrans();
+ $this->StartTrans();
$query = "DELETE FROM `".BIT_DB_PREFIX."articles` WHERE `content_id` = ?";
$result = $this->mDb->query( $query, array( $this->mContentId ) );
if ( LibertyMime::expunge() ) {
$ret = TRUE;
- $this->mDb->CompleteTrans();
+ $this->CompleteTrans();
} else {
- $this->mDb->RollbackTrans();
+ $this->RollbackTrans();
}
}
return $ret;