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.31.2~30 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=f2b621be73632b17d7e647b10959a0ed7dae9284;p=lhc%2Fweb%2Fwiklou.git 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 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 );