more types of corruption fixed
This commit is contained in:
parent
01d2ee5671
commit
b14d8978f8
1 changed files with 4 additions and 1 deletions
|
|
@ -17,7 +17,9 @@ $end = $row->m;
|
|||
|
||||
print("Refreshing link table. Starting from cur_id $start of $end.\n");
|
||||
|
||||
# Don't generate TeX PNGs (lack of a sensible current directory causes errors anyway)
|
||||
$wgUser->setOption("math", 3);
|
||||
|
||||
for ($id = $start; $id <= $end; $id++) {
|
||||
if ( !($id % REPORTING_INTERVAL) ) {
|
||||
print "$id\n";
|
||||
|
|
@ -33,11 +35,12 @@ for ($id = $start; $id <= $end; $id++) {
|
|||
$text = $wgArticle->getContent( true );
|
||||
@$wgOut->addWikiText( $text );
|
||||
|
||||
$wgLinkCache->saveToLinkscc();
|
||||
$linksUpdate = new LinksUpdate( $id, $wgTitle );
|
||||
$linksUpdate->doDumbUpdate();
|
||||
$linksUpdate->fixBrokenLinks();
|
||||
}
|
||||
|
||||
|
||||
exit();
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue