From 757e8c7bff29da462ecca37752555336011afd26 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 18 Mar 2011 19:15:33 +0000 Subject: [PATCH] * (bug 28104) Namespace for local pages in interwiki backlinks (iwbacklinks) is missing --- RELEASE-NOTES | 2 ++ includes/api/ApiQueryIWBacklinks.php | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c730830a78..54b60b2ff1 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -262,6 +262,8 @@ PHP if you have not done so prior to upgrading MediaWiki. miser mode) * (bug 26629) add Special:MIMESearch to api * (bug 27585) add pagecount to list=filearchive +* (bug 28104) Namespace for local pages in interwiki backlinks (iwbacklinks) + is missing === Languages updated in 1.18 === diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 07cfa16e85..8b3c8af15e 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -119,11 +119,10 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { if ( !is_null( $resultPageSet ) ) { $pages[] = Title::newFromRow( $row ); } else { - $entry = array(); + $entry = array( 'pageid' => $row->page_id ); - $entry['pageid'] = intval( $row->page_id ); - $entry['ns'] = intval( $row->page_namespace ); - $entry['title'] = $row->page_title; + $title = Title::makeTitle( $row->page_namespace, $row->page_title ); + ApiQueryBase::addTitleInfo( $entry, $title ); if ( $row->page_is_redirect ) { $entry['redirect'] = ''; -- 2.20.1