aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/refreshLinks.inc
diff options
context:
space:
mode:
authorBrion Vibber <brion@users.mediawiki.org>2005-01-15 07:08:37 +0000
committerBrion Vibber <brion@users.mediawiki.org>2005-01-15 07:08:37 +0000
commitf2dfed19309b4978b29cfb2e505fb40d0c276827 (patch)
tree6cbfabc08ff7a928c44767faa05cabb0cf80db45 /maintenance/refreshLinks.inc
parentb28de24ac95df1d6c754fbcb575bb12eccba0b5d (diff)
downloadmediawikicore-f2dfed19309b4978b29cfb2e505fb40d0c276827.tar.gz
mediawikicore-f2dfed19309b4978b29cfb2e505fb40d0c276827.zip
* (bug 1132) Fix concatenation of link lists in refreshLinks
* (bug 1101) Fix memory leak in refreshLinks
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/7061
Diffstat (limited to 'maintenance/refreshLinks.inc')
-rw-r--r--maintenance/refreshLinks.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/maintenance/refreshLinks.inc b/maintenance/refreshLinks.inc
index 60f29817f4f5..743293f01ee2 100644
--- a/maintenance/refreshLinks.inc
+++ b/maintenance/refreshLinks.inc
@@ -41,6 +41,16 @@ function refreshLinks( $start ) {
$text = $wgArticle->getContent( true );
$wgLinkCache = new LinkCache;
$wgLinkCache->forUpdate( true );
+
+ global $wgLinkHolders;
+ $wgLinkHolders = array(
+ 'namespaces' => array(),
+ 'dbkeys' => array(),
+ 'queries' => array(),
+ 'texts' => array(),
+ 'titles' => array()
+ );
+
# Parse the text and replace links with placeholders
$wgOut->addWikiText( $text );