Set redirlinks indexed tag name on list=backlinks
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 10 Oct 2014 13:37:58 +0000 (15:37 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 10 Oct 2014 13:40:00 +0000 (15:40 +0200)
Bug: 71907
Follow-Up: I32381c0f082d2f8e063af99ee353ae003c163c23
Change-Id: I4af6000c146e60cd6e3fbda42fcc7bef2952c4ba

includes/api/ApiQueryBacklinks.php

index e344236..52445d2 100644 (file)
@@ -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 );
                        }