r81841 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81840‎ | r81841 | r81842 >
Date:19:54, 9 February 2011
Author:reedy
Status:ok
Tags:
Comment:
Explicitally define $i = 0;
Modified paths:
  • /trunk/phase3/maintenance/refreshLinks.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/refreshLinks.php
@@ -93,6 +93,8 @@
9494 $num = $dbr->numRows( $res );
9595 $this->output( "Refreshing $num old redirects from $start...\n" );
9696
 97+ $i = 0;
 98+
9799 foreach ( $res as $row ) {
98100 if ( !( ++$i % $reportingInterval ) ) {
99101 $this->output( "$i\n" );

Status & tagging log