r70010 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70009‎ | r70010 | r70011 >
Date:12:39, 27 July 2010
Author:reedy
Status:ok
Tags:
Comment:
*(bug 24554) Don't show own revision in followup table
Modified paths:
  • /trunk/extensions/CodeReview/backend/CodeRevision.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/backend/CodeRevision.php
@@ -258,7 +258,10 @@
259259 $affectedRevs = array();
260260 if ( preg_match_all( '/\br(\d{2,})\b/', $this->mMessage, $m ) ) {
261261 foreach ( $m[1] as $rev ) {
262 - $affectedRevs[] = intval( $rev );
 262+ $affectedRev = intval( $rev );
 263+ if ( $affectedRev != $this->mId ) {
 264+ $affectedRevs[] = $affectedRev;
 265+ }
263266 }
264267 }
265268 // Also, get previous revisions that have bugs in common...
@@ -529,7 +532,9 @@
530533 __METHOD__
531534 );
532535 while ( $row = $res->fetchObject() ) {
533 - $refs[] = $row;
 536+ if ( $this->mId != intval( $row->cr_id ) ) {
 537+ $refs[] = $row;
 538+ }
534539 }
535540 return $refs;
536541 }

Status & tagging log