From: Tim Starling Date: Sat, 29 May 2004 02:01:39 +0000 (+0000) Subject: fixed getBrokenLinksTo(), inserted incorrect entries into link cache causing Special... X-Git-Tag: 1.5.0alpha1~3165 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=9737bc2c085bd5d1317cdbfab96d4fa3bc502bda;p=lhc%2Fweb%2Fwiklou.git fixed getBrokenLinksTo(), inserted incorrect entries into link cache causing Special:Undelete to fail with a DB error --- diff --git a/includes/Title.php b/includes/Title.php index 431811029c..ea9c4e22e2 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -779,7 +779,7 @@ class Title { if ( wfNumRows( $res ) ) { while ( $row = wfFetchObject( $res ) ) { $titleObj = Title::makeTitle( $row->cur_namespace, $row->cur_title ); - $wgLinkCache->addGoodLink( $titleObj->getPrefixedDBkey(), $row->cur_id ); + $wgLinkCache->addGoodLink( $row->cur_id, $titleObj->getPrefixedDBkey() ); $retVal[] = $titleObj; } }