dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64d9ae9
)
Explicitally define $i = 0;
author
Sam Reed
<reedy@users.mediawiki.org>
Wed, 9 Feb 2011 19:54:23 +0000
(19:54 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Wed, 9 Feb 2011 19:54:23 +0000
(19:54 +0000)
maintenance/refreshLinks.php
patch
|
blob
|
history
diff --git
a/maintenance/refreshLinks.php
b/maintenance/refreshLinks.php
index
7c22644
..
a65378b
100644
(file)
--- a/
maintenance/refreshLinks.php
+++ b/
maintenance/refreshLinks.php
@@
-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" );