From 4ef1b5cb3962d1effd61d377bed85be31c206e2c Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 5 Jun 2011 21:56:27 +0000 Subject: [PATCH] Fix 2 usages of 'bool' when 'boolean' is used elsewhere --- includes/api/ApiParamInfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index 5d1b572cba..95ff7bf0e9 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -134,7 +134,7 @@ class ApiParamInfo extends ApiBase { if ( !isset( $p[ApiBase::PARAM_TYPE] ) ) { $dflt = isset( $p[ApiBase::PARAM_DFLT] ) ? $p[ApiBase::PARAM_DFLT] : null; if ( is_bool( $dflt ) ) { - $p[ApiBase::PARAM_TYPE] = 'bool'; + $p[ApiBase::PARAM_TYPE] = 'boolean'; } elseif ( is_string( $dflt ) || is_null( $dflt ) ) { $p[ApiBase::PARAM_TYPE] = 'string'; } elseif ( is_int( $dflt ) ) { @@ -151,7 +151,7 @@ class ApiParamInfo extends ApiBase { if ( isset( $p[ApiBase::PARAM_DFLT] ) ) { $type = $p[ApiBase::PARAM_TYPE]; - if( $type === 'bool' ) { + if( $type === 'boolean' ) { $a['default'] = ( $p[ApiBase::PARAM_DFLT] ? 'true' : 'false' ); } elseif( $type === 'string' ) { $a['default'] = strval( $p[ApiBase::PARAM_DFLT] ); -- 2.20.1