r40004 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40003‎ | r40004 | r40005 >
Date:05:02, 26 August 2008
Author:aaron
Status:old
Tags:
Comment:
tweak transaction
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
@@ -1102,8 +1102,6 @@
11031103 if( $patrol ) {
11041104 RevisionReview::updateRecentChanges( $title, $rev->getId() );
11051105 }
1106 - # Done!
1107 - $dbw->commit();
11081106
11091107 # Update the article review log
11101108 RevisionReview::updateLog( $title, $flags, array(), '', $rev->getId(), $oldSvId, true, true );
@@ -1117,6 +1115,8 @@
11181116 # Update page fields
11191117 self::updateArticleOn( $article, $rev->getId(), $rev->getId() );
11201118 }
 1119+ # Done!
 1120+ $dbw->commit();
11211121
11221122 wfProfileOut( __METHOD__ );
11231123 return true;

Status & tagging log