Index: trunk/extensions/Validator/includes/criteria/CriterionInRange.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | class CriterionInRange extends ItemParameterCriterion { |
16 | 16 | |
17 | 17 | /** |
18 | | - * Lower bound of the range. Either a number or false, for no lower limit. |
| 18 | + * Lower bound of the range (included). Either a number or false, for no lower limit. |
19 | 19 | * |
20 | 20 | * @since 0.4 |
21 | 21 | * |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | protected $lowerBound; |
25 | 25 | |
26 | 26 | /** |
27 | | - * Upper bound of the range. Either a number or false, for no upper limit. |
| 27 | + * Upper bound of the range (included). Either a number or false, for no upper limit. |
28 | 28 | * |
29 | 29 | * @since 0.4 |
30 | 30 | * |
Index: trunk/extensions/Validator/includes/Validator.php |
— | — | @@ -250,11 +250,12 @@ |
251 | 251 | break; |
252 | 252 | } |
253 | 253 | else { |
| 254 | + |
254 | 255 | $parameter->validate( $this->parameters ); |
255 | 256 | |
256 | 257 | foreach ( $parameter->getErrors() as $error ) { |
257 | 258 | $this->registerError( $error ); |
258 | | - } |
| 259 | + } |
259 | 260 | |
260 | 261 | if ( $parameter->hasFatalError() ) { |
261 | 262 | // If there was a fatal error, and the parameter is required, stop processing. |
— | — | @@ -299,7 +300,7 @@ |
300 | 301 | // Loop over the parameters to handle to create a dependency list. |
301 | 302 | foreach ( $this->paramsTohandle as $paramName ) { |
302 | 303 | $dependencies = array(); |
303 | | - |
| 304 | + |
304 | 305 | // Only include dependencies that are in the list of parameters to handle. |
305 | 306 | foreach ( $this->parameters[$paramName]->getDependencies() as $dependency ) { |
306 | 307 | if ( in_array( $dependency, $this->paramsTohandle ) ) { |