r48831 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48830‎ | r48831 | r48832 >
Date:15:25, 25 March 2009
Author:aaron
Status:ok
Tags:
Comment:
Fix for PREG_PATTERN_ORDER
Modified paths:
  • /trunk/extensions/CodeReview/CodeRevision.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeRevision.php
@@ -185,8 +185,7 @@
186186 // Update code relations (One-digit revs skipped due to some false-positives)
187187 if ( preg_match_all( '/\br(\d{2,})\b/', $this->mMessage, $m ) ) {
188188 $data = array();
189 - unset($m[0]); // ignore the whole match
190 - foreach( $m as $rev ) {
 189+ foreach( $m[1] as $rev ) {
191190 $data[] = array(
192191 'cf_repo_id' => $this->mRepoId,
193192 'cf_from' => $this->mId,

Status & tagging log