From 71ff793e486af936f3417f4f4df74c41994d0e6c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 23 Jul 2010 16:59:27 +0000 Subject: [PATCH] Fixup code from r69753, create title from row and use that in the pageset Also intval() page_namespace as per CR --- includes/api/ApiQueryIWBacklinks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 40a9a53c4e..909da72cfa 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -112,12 +112,12 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { } if ( !is_null( $resultPageSet ) ) { - $pages[] = Title::makeTitle( $row->page_namespace, $row->page_title )->getPrefixedText(); + $pages[] = Title::newFromRow( $row ); } else { $entry = array(); $entry['pageid'] = intval( $row->page_id ); - $entry['ns'] = $row->page_namespace; + $entry['ns'] = intval( $row->page_namespace ); $entry['title'] = $row->page_title; if ( $row->page_is_redirect ) { -- 2.20.1