From af496e87c696083f35366d0090463e797b959ac4 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 21 Aug 2004 15:14:56 +0000 Subject: [PATCH] minor bug fix --- includes/Article.php | 2 +- includes/LinksUpdate.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index ec07e3df70..ebe5fb092a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1073,7 +1073,7 @@ class Article { $wgOut->addWikiText( $text ); # Look up the links in the DB and add them to the link cache - $wgOut->replaceLinkHolders( RLH_FOR_UPDATE ); + $wgOut->transformBuffer( RLH_FOR_UPDATE ); if( $wgMwRedir->matchStart( $text ) ) $r = 'redirect=no'; diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index 435d610c34..a64328db28 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -56,12 +56,12 @@ class LinksUpdate { $arr=array(); foreach($add as $lt=>$lid) array_push($arr,array( - 'l_from'=>$this->mId, - 'l_to'=>$lid)); - # The link cache was constructed without FOR UPDATE, so there may be collisions - # Ignoring for now, I'm not sure if that causes problems or not, but I'm fairly - # sure it's better than without IGNORE - $dbw->insertArray($links,$arr,array('IGNORE')); + 'l_from'=>$this->mId, + 'l_to'=>$lid)); + # The link cache was constructed without FOR UPDATE, so there may be collisions + # Ignoring for now, I'm not sure if that causes problems or not, but I'm fairly + # sure it's better than without IGNORE + $dbw->insertArray('links', $arr, $fname, array('IGNORE')); } #------------------------------------------------------------------------------ -- 2.20.1