From: Sam Reed Date: Sun, 5 Jun 2011 21:56:27 +0000 (+0000) Subject: Fix 2 usages of 'bool' when 'boolean' is used elsewhere X-Git-Tag: 1.31.0-rc.0~29687 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=4ef1b5cb3962d1effd61d377bed85be31c206e2c;p=lhc%2Fweb%2Fwiklou.git Fix 2 usages of 'bool' when 'boolean' is used elsewhere --- 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] );