Index: trunk/extensions/Validator/includes/Validator.php |
— | — | @@ -296,10 +296,12 @@ |
297 | 297 | public function formatParameters() { |
298 | 298 | foreach ( $this->parameters as $parameter ) { |
299 | 299 | foreach ( $parameter->outputTypes as $outputType ) { |
| 300 | + $outputType[0] = strtolower( $outputType[0] ); |
300 | 301 | if ( array_key_exists( $outputType[0], self::$mOutputFormats ) ) { |
301 | 302 | $parameters = array( &$parameter->value, $parameter->getName(), $this->parameters ); |
302 | | - $parameters = array_merge( $parameters, $arguments ); |
303 | | - call_user_func_array( self::$mOutputFormats[$outputType[0]], $parameters ); |
| 303 | + $name = array_shift( $outputType ); |
| 304 | + $parameters = array_merge( $parameters, $outputType ); |
| 305 | + call_user_func_array( self::$mOutputFormats[$name], $parameters ); |
304 | 306 | } |
305 | 307 | else { |
306 | 308 | throw new Exception( 'There is no formatting function for output format ' . $outputType[0] ); |