From f6d81b04c0ab472fcd2e9e0bbc03b70add558a58 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 6 Jul 2003 12:04:36 +0000 Subject: [PATCH] Minor link update fix --- includes/Article.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 ); -- 2.20.1