From a5b61579a3732121c65f344d3b3f6addf9f324ae Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 10 Oct 2014 15:37:58 +0200 Subject: [PATCH] Set redirlinks indexed tag name on list=backlinks Bug: 71907 Follow-Up: I32381c0f082d2f8e063af99ee353ae003c163c23 Change-Id: I4af6000c146e60cd6e3fbda42fcc7bef2952c4ba --- includes/api/ApiQueryBacklinks.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index e344236c93..52445d279f 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -287,6 +287,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { $res = $this->select( __METHOD__ ); $count = 0; + $result = $this->getResult(); foreach ( $res as $row ) { $ns = $this->hasNS ? $row->{$this->bl_ns} : NS_FILE; @@ -318,6 +319,10 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { $parentID = $this->pageMap[$ns][$row->{$this->bl_title}]; // Put all the results in an array first $this->resultArr[$parentID]['redirlinks'][$row->page_id] = $a; + $result->setIndexedTagName( + $this->resultArr[$parentID]['redirlinks'], + $this->bl_code + ); } else { $resultPageSet->processDbRow( $row ); } -- 2.20.1