From: Reedy Date: Mon, 25 Feb 2019 00:18:47 +0000 (+0000) Subject: Return the page_id in list=langbacklinks as an int X-Git-Tag: 1.34.0-rc.0~2729^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=93de72d9ae938e93bf89a7c45a29e9bb736d7b3c Return the page_id in list=langbacklinks as an int Bug: T216968 Change-Id: I5b16779be7b24b1e46d4787a82a8daa3611f67b1 --- diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index 7145d4da80..383f3039ed 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 );