Save names in query cache by using "value"
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 10 Jul 2005 18:36:48 +0000 (18:36 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 10 Jul 2005 18:36:48 +0000 (18:36 +0000)
includes/SpecialDisambiguations.php

index e141a29..aa45382 100644 (file)
@@ -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,'');