* (bug 2576) Fix recording of transclusion links
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 28 Jun 2005 16:35:16 +0000 (16:35 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 28 Jun 2005 16:35:16 +0000 (16:35 +0000)
Somehow we ended up with two copies of the same stuff in there, and they
stomped up the tables.

RELEASE-NOTES
includes/Article.php

index a355280..46eeade 100644 (file)
@@ -400,6 +400,7 @@ Various bugfixes, small features, and a few experimental things:
 * (bug 2560) Don't show blank width/height attributes for missing size
 * Don't show bogus messages about watchlist notifications when disabled
 * Don't show old debug messages in watchlist
+* (bug 2576) Fix recording of transclusion links
 
 
 === Caveats ===
index 9b000a3..cd22c09 100644 (file)
@@ -1210,20 +1210,7 @@ class Article {
                                $wgLinkCache->clear();
                        }
                }
-               # Parse the text and replace links with placeholders
-               # Do this outside the locks on the links table
-               # The existence test queries need to be FOR UPDATE
-               #$oldUpdate = $wgParser->forUpdate( true );
-               $wgOut = new OutputPage();
-               $wgOut->addWikiTextWithTitle( $text, $this->mTitle );
-
-               # Select for update
-               $wgLinkCache->forUpdate( true );
-
-               # Get old version of link table to allow incremental link updates
-               $wgLinkCache->preFill( $this->mTitle );
-               $wgLinkCache->clear();
-
+               
                # Parse the text and replace links with placeholders
                $wgOut = new OutputPage();