From: Tim Starling Date: Sun, 27 Mar 2005 17:34:16 +0000 (+0000) Subject: Removed legacy BEGIN/COMMIT pair X-Git-Tag: 1.5.0alpha1~481 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=45298435ed7eb18e221336add3ce5b40bb41b13f;p=lhc%2Fweb%2Fwiklou.git Removed legacy BEGIN/COMMIT pair --- diff --git a/includes/Article.php b/includes/Article.php index 1b83657915..091adc3004 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1089,9 +1089,7 @@ class Article { # It's important that we either rollback or complete, otherwise an attacker could # overwrite cur entries by sending precisely timed user aborts. Random bored users # could conceivably have the same effect, especially if cur is locked for long periods. - if( $wgDBtransactions ) { - $dbw->query( 'BEGIN', $fname ); - } else { + if( !$wgDBtransactions ) { $userAbort = ignore_user_abort( true ); } @@ -1128,9 +1126,7 @@ class Article { } } - if( $wgDBtransactions ) { - $dbw->query( 'COMMIT', $fname ); - } else { + if( !$wgDBtransactions ) { ignore_user_abort( $userAbort ); }