* (bug 28104) Namespace for local pages in interwiki backlinks (iwbacklinks)
authorSam Reed <reedy@users.mediawiki.org>
Fri, 18 Mar 2011 19:15:33 +0000 (19:15 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 18 Mar 2011 19:15:33 +0000 (19:15 +0000)
  is missing

RELEASE-NOTES
includes/api/ApiQueryIWBacklinks.php

index c730830..54b60b2 100644 (file)
@@ -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 ===
 
index 07cfa16..8b3c8af 100644 (file)
@@ -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'] = '';