From: Ryan Kaldari Date: Thu, 8 Mar 2012 00:34:42 +0000 (+0000) Subject: better error message and comment X-Git-Tag: 1.31.0-rc.0~24337 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=71bdf4a745f9fbc8fb2847e0240b690bb4275c04;p=lhc%2Fweb%2Fwiklou.git better error message and comment --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index bf197b32e4..a8c3cc7f87 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -811,8 +811,8 @@ abstract class ApiBase extends ContextSource { if ( $type == 'boolean' ) { if ( isset( $default ) && $default !== false ) { - // Having a default value of anything other than 'false' is pointless - ApiBase::dieDebug( __METHOD__, "Boolean param $encParamName's default is set to '$default'" ); + // Having a default value of anything other than 'false' is not allowed + ApiBase::dieDebug( __METHOD__, "Boolean param $encParamName's default is set to '$default'. Boolean parameters must default to false." ); } $value = $this->getRequest()->getCheck( $encParamName );