From 7ae12409e5a8c30313ba024430a4ce6a15ca63a6 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 10 Jul 2005 18:36:48 +0000 Subject: [PATCH] Save names in query cache by using "value" --- includes/SpecialDisambiguations.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,''); -- 2.20.1