From a1789ddde42033f1b05cc4929491214ee6e79383 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 17 Dec 2015 09:15:42 +0100 Subject: Update to MediaWiki 1.26.0 --- includes/api/ApiQueryBlocks.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'includes/api/ApiQueryBlocks.php') diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index 4a7023b7..d004020d 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -191,19 +191,19 @@ class ApiQueryBlocks extends ApiQueryBase { ApiResult::META_TYPE => 'assoc', ); if ( $fld_id ) { - $block['id'] = $row->ipb_id; + $block['id'] = (int)$row->ipb_id; } if ( $fld_user && !$row->ipb_auto ) { $block['user'] = $row->ipb_address; } if ( $fld_userid && !$row->ipb_auto ) { - $block['userid'] = $row->ipb_user; + $block['userid'] = (int)$row->ipb_user; } if ( $fld_by ) { $block['by'] = $row->ipb_by_text; } if ( $fld_byid ) { - $block['byid'] = $row->ipb_by; + $block['byid'] = (int)$row->ipb_by; } if ( $fld_timestamp ) { $block['timestamp'] = wfTimestamp( TS_ISO_8601, $row->ipb_timestamp ); @@ -303,7 +303,8 @@ class ApiQueryBlocks extends ApiQueryBase { 'range', 'flags' ), - ApiBase::PARAM_ISMULTI => true + ApiBase::PARAM_ISMULTI => true, + ApiBase::PARAM_HELP_MSG_PER_VALUE => array(), ), 'show' => array( ApiBase::PARAM_TYPE => array( -- cgit v1.2.2