Index: trunk/phase3/includes/api/ApiParamInfo.php |
— | — | @@ -134,7 +134,7 @@ |
135 | 135 | if ( !isset( $p[ApiBase::PARAM_TYPE] ) ) { |
136 | 136 | $dflt = isset( $p[ApiBase::PARAM_DFLT] ) ? $p[ApiBase::PARAM_DFLT] : null; |
137 | 137 | if ( is_bool( $dflt ) ) { |
138 | | - $p[ApiBase::PARAM_TYPE] = 'bool'; |
| 138 | + $p[ApiBase::PARAM_TYPE] = 'boolean'; |
139 | 139 | } elseif ( is_string( $dflt ) || is_null( $dflt ) ) { |
140 | 140 | $p[ApiBase::PARAM_TYPE] = 'string'; |
141 | 141 | } elseif ( is_int( $dflt ) ) { |
— | — | @@ -151,7 +151,7 @@ |
152 | 152 | |
153 | 153 | if ( isset( $p[ApiBase::PARAM_DFLT] ) ) { |
154 | 154 | $type = $p[ApiBase::PARAM_TYPE]; |
155 | | - if( $type === 'bool' ) { |
| 155 | + if( $type === 'boolean' ) { |
156 | 156 | $a['default'] = ( $p[ApiBase::PARAM_DFLT] ? 'true' : 'false' ); |
157 | 157 | } elseif( $type === 'string' ) { |
158 | 158 | $a['default'] = strval( $p[ApiBase::PARAM_DFLT] ); |