From 8b8cc02ed76e8b0dc793b81b537f5e7bcb1bdfa8 Mon Sep 17 00:00:00 2001 From: setian Date: Sun, 24 Feb 2019 16:43:33 -0500 Subject: [PATCH] Return the page_id in list=iwbacklinks as an int rather than string Bug: T216968 Change-Id: I6645c5f1c6e76be3187c24053ed430e99c03bff4 --- includes/api/ApiQueryIWBacklinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 7193eebe4b..3037a7239f 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -131,7 +131,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { if ( !is_null( $resultPageSet ) ) { $pages[] = Title::newFromRow( $row ); } else { - $entry = [ 'pageid' => $row->page_id ]; + $entry = [ 'pageid' => (int)$row->page_id ]; $title = Title::makeTitle( $row->page_namespace, $row->page_title ); ApiQueryBase::addTitleInfo( $entry, $title ); -- 2.20.1