Cleared $wgLinkHolders after they are used. This fixes bug 1770 and probably improves...
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 25 Apr 2005 13:43:11 +0000 (13:43 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 25 Apr 2005 13:43:11 +0000 (13:43 +0000)
includes/Parser.php

index daf10df..18fa228 100644 (file)
@@ -2920,6 +2920,17 @@ class Parser
                        wfProfileOut( $fname.'-interwiki' );
                }
 
+               # Clear link holders, no need to fetch these ones again in a subsequent invocation
+               $wgLinkHolders = array(
+                       'namespaces' => array(),
+                       'dbkeys' => array(),
+                       'queries' => array(),
+                       'texts' => array(),
+                       'titles' => array()
+               );
+               $wgInterwikiLinkHolders = array();
+
+
                wfProfileOut( $fname );
                return $colours;
        }