From: Tim Starling Date: Sat, 21 Aug 2004 15:14:56 +0000 (+0000) Subject: minor bug fix X-Git-Tag: 1.5.0alpha1~2268 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=af496e87c696083f35366d0090463e797b959ac4;p=lhc%2Fweb%2Fwiklou.git minor bug fix --- 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')); } #------------------------------------------------------------------------------