|
@@ 167-174 (lines=8) @@
|
| 164 |
|
$this->output( "Refreshing redirects table.\n" ); |
| 165 |
|
$this->output( "Starting from page_id $start of $end.\n" ); |
| 166 |
|
|
| 167 |
|
for ( $id = $start; $id <= $end; $id++ ) { |
| 168 |
|
|
| 169 |
|
if ( !( $id % $reportingInterval ) ) { |
| 170 |
|
$this->output( "$id\n" ); |
| 171 |
|
wfWaitForSlaves(); |
| 172 |
|
} |
| 173 |
|
$this->fixRedirect( $id ); |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
if ( !$redirectsOnly ) { |
| 177 |
|
$this->output( "Refreshing links tables.\n" ); |
|
@@ 180-187 (lines=8) @@
|
| 177 |
|
$this->output( "Refreshing links tables.\n" ); |
| 178 |
|
$this->output( "Starting from page_id $start of $end.\n" ); |
| 179 |
|
|
| 180 |
|
for ( $id = $start; $id <= $end; $id++ ) { |
| 181 |
|
|
| 182 |
|
if ( !( $id % $reportingInterval ) ) { |
| 183 |
|
$this->output( "$id\n" ); |
| 184 |
|
wfWaitForSlaves(); |
| 185 |
|
} |
| 186 |
|
self::fixLinksFromArticle( $id, $this->namespace ); |
| 187 |
|
} |
| 188 |
|
} |
| 189 |
|
} |
| 190 |
|
} |