From: setian Date: Sun, 24 Feb 2019 21:43:33 +0000 (-0500) Subject: Return the page_id in list=iwbacklinks as an int rather than string X-Git-Tag: 1.31.2~31 X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=f1907d3f012cf3ae4b56e256fb71cc04b5ec33ee Return the page_id in list=iwbacklinks as an int rather than string Bug: T216968 Change-Id: I6645c5f1c6e76be3187c24053ed430e99c03bff4 --- 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 );