From: Tim Starling Date: Tue, 24 Feb 2004 14:11:13 +0000 (+0000) Subject: Seems to be working now X-Git-Tag: 1.3.0beta1~953 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=df30457dc072a1bb3278188648038a4e1d3884a9;p=lhc%2Fweb%2Fwiklou.git Seems to be working now --- diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index e25b09b269..6177de62c0 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -1,5 +1,6 @@ getContent( true ); + $wgLinkCache = new LinkCache; @$wgOut->addWikiText( $text ); - - $wgLinkCache->saveToLinkscc(); - $linksUpdate = new LinksUpdate( $id, $wgTitle ); + + if ( $wgEnablePersistentLC ) { + $wgLinkCache->saveToLinkscc( $id, wfStrencode( $wgTitle->getPrefixedDBkey() ) ); + } + + $linksUpdate = new LinksUpdate( $id, $wgTitle->getPrefixedDBkey() ); $linksUpdate->doDumbUpdate(); $linksUpdate->fixBrokenLinks(); }