Index: trunk/extensions/Validator/includes/criteria/CriterionItemCount.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | /** |
36 | 36 | * @see ParameterCriterion::validate |
37 | 37 | */ |
38 | | - public function validate( Parameter $parameter ) { |
| 38 | + public function validate( Parameter $parameter, array $parameters) { |
39 | 39 | $count = count( $parameter->getValue() ); |
40 | 40 | return $count <= $this->upperBound && $count >= $this->lowerBound; |
41 | 41 | } |
Index: trunk/extensions/Validator/includes/criteria/CriterionUniqueItems.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | /** |
27 | 27 | * @see ParameterCriterion::validate |
28 | 28 | */ |
29 | | - public function validate( Parameter $parameter ) { |
| 29 | + public function validate( Parameter $parameter, array $parameters ) { |
30 | 30 | return count( $parameter->getValue() ) == count( array_unique( $parameter->getValue() ) ); |
31 | 31 | } |
32 | 32 | |
Index: trunk/extensions/Validator/Validator.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | die( 'Not an entry point.' ); |
26 | 26 | } |
27 | 27 | |
28 | | -define( 'Validator_VERSION', '0.4 beta 3' ); |
| 28 | +define( 'Validator_VERSION', '0.4 beta 4' ); |
29 | 29 | |
30 | 30 | // Register the internationalization file. |
31 | 31 | $wgExtensionMessagesFiles['Validator'] = dirname( __FILE__ ) . '/Validator.i18n.php'; |