http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89538
Revision: 89538
Author: reedy
Date: 2011-06-05 21:56:27 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
Fix 2 usages of 'bool' when 'boolean' is used elsewhere
Modified Paths:
--------------
trunk/phase3/includes/api/ApiParamInfo.php
Modified: trunk/phase3/includes/api/ApiParamInfo.php
===================================================================
--- trunk/phase3/includes/api/ApiParamInfo.php 2011-06-05 21:50:49 UTC (rev
89537)
+++ trunk/phase3/includes/api/ApiParamInfo.php 2011-06-05 21:56:27 UTC (rev
89538)
@@ -134,7 +134,7 @@
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 @@
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] );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs