Explicitally define $i = 0;
authorSam Reed <reedy@users.mediawiki.org>
Wed, 9 Feb 2011 19:54:23 +0000 (19:54 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 9 Feb 2011 19:54:23 +0000 (19:54 +0000)
maintenance/refreshLinks.php

index 7c22644..a65378b 100644 (file)
@@ -93,6 +93,8 @@ class RefreshLinks extends Maintenance {
                        $num = $dbr->numRows( $res );
                        $this->output( "Refreshing $num old redirects from $start...\n" );
 
+                       $i = 0;
+
                        foreach ( $res as $row ) {
                                if ( !( ++$i % $reportingInterval ) ) {
                                        $this->output( "$i\n" );