r88891 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88890‎ | r88891 | r88892 >
Date:13:14, 26 May 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
fixed capitalization issue
Modified paths:
  • /trunk/extensions/Validator/includes/manipulations/ParamManipulationBoolean.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Validator/includes/manipulations/ParamManipulationBoolean.php
@@ -30,7 +30,7 @@
3131 public function doManipulation( &$value, Parameter $parameter, array &$parameters ) {
3232 // When the value defaulted to a boolean, there is no need for this manipulation.
3333 if ( !is_bool( $value ) || !$parameter->wasSetToDefault() ) {
34 - $value = in_array( $value, array( 'yes', 'on' ) );
 34+ $value = in_array( strtolower( $value ), array( 'yes', 'on' ) );
3535 }
3636 }
3737

Status & tagging log