Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php |
— | — | @@ -1102,8 +1102,6 @@ |
1103 | 1103 | if( $patrol ) { |
1104 | 1104 | RevisionReview::updateRecentChanges( $title, $rev->getId() ); |
1105 | 1105 | } |
1106 | | - # Done! |
1107 | | - $dbw->commit(); |
1108 | 1106 | |
1109 | 1107 | # Update the article review log |
1110 | 1108 | RevisionReview::updateLog( $title, $flags, array(), '', $rev->getId(), $oldSvId, true, true ); |
— | — | @@ -1117,6 +1115,8 @@ |
1118 | 1116 | # Update page fields |
1119 | 1117 | self::updateArticleOn( $article, $rev->getId(), $rev->getId() ); |
1120 | 1118 | } |
| 1119 | + # Done! |
| 1120 | + $dbw->commit(); |
1121 | 1121 | |
1122 | 1122 | wfProfileOut( __METHOD__ ); |
1123 | 1123 | return true; |