<?php
-require_once 'counter.php';
/**
* @todo document
* @package MediaWiki
*/
/** */
-define( 'REPORTING_INTERVAL', 10 );
+define( "REPORTING_INTERVAL", 100 );
function refreshLinks( $start, $newOnly = false, $maxLag = false ) {
global $wgUser, $wgParser, $wgUseImageResize;
$i = 0;
while ( $row = $dbr->fetchObject( $res ) ) {
if ( !( ++$i % REPORTING_INTERVAL ) ) {
- print_c( $i - 1, $i );
+ print "$i\n";
wfWaitForSlaves( $maxLag );
}
for ($id = $start; $id <= $end; $id++) {
if ( !($id % REPORTING_INTERVAL) ) {
- print_c( $id - 1, $id );
+ print "$id\n";
wfWaitForSlaves( $maxLag );
}
fixLinksFromArticle( $id );