Minor link update fix
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 6 Jul 2003 12:04:36 +0000 (12:04 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 6 Jul 2003 12:04:36 +0000 (12:04 +0000)
includes/Article.php

index 614c715..c75d62e 100644 (file)
@@ -751,13 +751,15 @@ name=\"wpSummary\" maxlength=200 size=60><br>
 
        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 );