From f1907d3f012cf3ae4b56e256fb71cc04b5ec33ee 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 90aed6ecbb..83801c73cb 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