From: Sam Reed Date: Fri, 18 Mar 2011 19:15:33 +0000 (+0000) Subject: * (bug 28104) Namespace for local pages in interwiki backlinks (iwbacklinks) X-Git-Tag: 1.31.0-rc.0~31349 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=757e8c7bff29da462ecca37752555336011afd26;p=lhc%2Fweb%2Fwiklou.git * (bug 28104) Namespace for local pages in interwiki backlinks (iwbacklinks) is missing --- 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'] = '';