From f2b621be73632b17d7e647b10959a0ed7dae9284 Mon Sep 17 00:00:00 2001 From: Reedy Date: Mon, 25 Feb 2019 00:18:47 +0000 Subject: [PATCH] Return the page_id in list=langbacklinks as an int Bug: T216968 Change-Id: I5b16779be7b24b1e46d4787a82a8daa3611f67b1 --- includes/api/ApiQueryLangBacklinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index 9b993128fd..2e19783ced 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -130,7 +130,7 @@ class ApiQueryLangBacklinks 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