m; print("Refreshing link table. Starting from cur_id $start of $end.\n"); $wgUser->setOption("math", 3); for ($id = $start; $id <= $end; $id++) { if ( !($id % REPORTING_INTERVAL) ) { print "$id\n"; } $wgTitle = Title::newFromID( $id ); if ( is_null( $wgTitle ) ) { continue; } $wgLinkCache = new LinkCache; $wgArticle = new Article( $wgTitle ); $text = $wgArticle->getContent( true ); @$wgOut->addWikiText( $text ); $linksUpdate = new LinksUpdate( $id, $wgTitle ); $linksUpdate->doDumbUpdate(); } exit(); ?>