r75570 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75569‎ | r75570 | r75571 >
Date:19:54, 27 October 2010
Author:aaron
Status:ok
Tags:
Comment:
Include $newid in rev_id query cond
Modified paths:
  • /trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php
@@ -1010,8 +1010,10 @@
10111011
10121012 $dbr = wfGetDB( DB_SLAVE );
10131013 $oldid = $dbr->addQuotes( $oldRev->getId() );
 1014+ $newid = $dbr->addQuotes( $newRev->getId() );
10141015 $res = $dbr->select( 'revision', 'rev_id',
1015 - array( 'rev_id > ' . $oldid, 'rev_page' => $oldRev->getPage() ),
 1016+ array( 'rev_id > ' . $oldid, 'rev_id <= ' . $newid,
 1017+ 'rev_page' => $oldRev->getPage() ),
10161018 __METHOD__
10171019 );
10181020

Status & tagging log