Index: trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php |
— | — | @@ -695,15 +695,13 @@ |
696 | 696 | $key = wfMemcKey( 'flaggedrevisiontext', 'revid', $rev->getId() ); |
697 | 697 | $wgMemc->delete( $key ); |
698 | 698 | } |
699 | | - $dbw->commit(); |
700 | | - |
701 | | - $dbw->begin(); |
702 | | - |
703 | 699 | # Update recent changes |
704 | 700 | self::updateRecentChanges( $this->page, $rev->getId(), $this->rcid ); |
705 | 701 | # Update the article review log |
706 | 702 | self::updateLog( $this->page, $this->dims, $this->oflags, $this->comment, $this->oldid, $oldSvId, true ); |
| 703 | + $dbw->commit(); |
707 | 704 | |
| 705 | + $dbw->begin(); |
708 | 706 | # Update the links tables as the stable version may now be the default page. |
709 | 707 | # Try using the parser cache first since we didn't actually edit the current version. |
710 | 708 | $parserCache = ParserCache::singleton(); |