From: Antoine Musso Date: Sun, 10 Jul 2005 18:36:48 +0000 (+0000) Subject: Save names in query cache by using "value" X-Git-Tag: 1.5.0beta4~170 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=7ae12409e5a8c30313ba024430a4ce6a15ca63a6;p=lhc%2Fweb%2Fwiklou.git Save names in query cache by using "value" --- diff --git a/includes/SpecialDisambiguations.php b/includes/SpecialDisambiguations.php index e141a29a1d..aa45382f15 100644 --- a/includes/SpecialDisambiguations.php +++ b/includes/SpecialDisambiguations.php @@ -42,7 +42,7 @@ class DisambiguationsPage extends PageQueryPage { $dtitle = $dbr->addQuotes( $dp->getDBkey() ); $sql = "SELECT 'Disambiguations' as type," - . "la.pl_namespace AS namespace, la.pl_title AS title, la.pl_from AS link_from" + . "la.pl_namespace AS namespace, la.pl_title AS title, la.pl_from AS value" . " FROM {$pagelinks} AS la, {$pagelinks} AS lb," . " {$page} AS pa, {$page} AS pb" . " WHERE pb.page_namespace = $dns" @@ -59,7 +59,7 @@ class DisambiguationsPage extends PageQueryPage { function formatResult( $skin, $result ) { global $wgContLang ; - $title = Title::newFromId( $result->link_from ); + $title = Title::newFromId( $result->value ); $dp = Title::makeTitle( $result->namespace, $result->title ); $from = $skin->makeKnownLinkObj( $title,'');