Return the page_id in list=iwbacklinks as an int rather than string
Bug: T216968 Change-Id: I6645c5f1c6e76be3187c24053ed430e99c03bff4
This commit is contained in:
parent
09f85412af
commit
8b8cc02ed7
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue