r84257 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84256‎ | r84257 | r84258 >
Date:19:15, 18 March 2011
Author:reedy
Status:ok
Tags:
Comment:
* (bug 28104) Namespace for local pages in interwiki backlinks (iwbacklinks)
is missing
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryIWBacklinks.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryIWBacklinks.php
@@ -119,11 +119,10 @@
120120 if ( !is_null( $resultPageSet ) ) {
121121 $pages[] = Title::newFromRow( $row );
122122 } else {
123 - $entry = array();
 123+ $entry = array( 'pageid' => $row->page_id );
124124
125 - $entry['pageid'] = intval( $row->page_id );
126 - $entry['ns'] = intval( $row->page_namespace );
127 - $entry['title'] = $row->page_title;
 125+ $title = Title::makeTitle( $row->page_namespace, $row->page_title );
 126+ ApiQueryBase::addTitleInfo( $entry, $title );
128127
129128 if ( $row->page_is_redirect ) {
130129 $entry['redirect'] = '';
Index: trunk/phase3/RELEASE-NOTES
@@ -262,6 +262,8 @@
263263 miser mode)
264264 * (bug 26629) add Special:MIMESearch to api
265265 * (bug 27585) add pagecount to list=filearchive
 266+* (bug 28104) Namespace for local pages in interwiki backlinks (iwbacklinks)
 267+ is missing
266268
267269 === Languages updated in 1.18 ===
268270

Status & tagging log