From: Tim Starling Date: Tue, 24 Feb 2004 00:10:32 +0000 (+0000) Subject: more types of corruption fixed X-Git-Tag: 1.3.0beta1~957 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=b14d8978f8a2a95c49906962cb3f04e32674fdfb;p=lhc%2Fweb%2Fwiklou.git more types of corruption fixed --- diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index c444ab050a..e25b09b269 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -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(); ?>