From: Tim Starling Date: Sun, 6 Jul 2003 12:04:36 +0000 (+0000) Subject: Minor link update fix X-Git-Tag: 1.1.0~445 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=f6d81b04c0ab472fcd2e9e0bbc03b70add558a58;p=lhc%2Fweb%2Fwiklou.git Minor link update fix --- diff --git a/includes/Article.php b/includes/Article.php index 614c715c28..c75d62e6c4 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -751,13 +751,15 @@ name=\"wpSummary\" maxlength=200 size=60>
function showArticle( $text, $subtitle ) { - global $wgOut, $wgTitle, $wgUser, $wgLinkCache; + global $wgOut, $wgTitle, $wgUser, $wgLinkCache, $wgUseBetterLinksUpdate; $wgLinkCache = new LinkCache(); # Get old version of link table to allow incremental link updates - $wgLinkCache->preFill( $wgTitle ); - $wgLinkCache->clear(); + if ( $wgUseBetterLinksUpdate ) { + $wgLinkCache->preFill( $wgTitle ); + $wgLinkCache->clear(); + } # Now update the link cache by parsing the text $wgOut->addWikiText( $text );