Index: trunk/extensions/Validator/Validator_Manager.php |
— | — | @@ -59,8 +59,9 @@ |
60 | 60 | global $wgLang; |
61 | 61 | global $egValidatorErrorLevel; |
62 | 62 | |
63 | | - if ( $egValidatorErrorLevel >= Validator_ERRORS_SHOW && count( $this->errors ) > 0 ) { |
64 | | - $errorList = '<b>' . wfMsg( 'validator_error_parameters' ) . ':</b><br /><i>'; |
| 63 | + $error_count = count( $this->errors ) ; |
| 64 | + if ( $egValidatorErrorLevel >= Validator_ERRORS_SHOW && $error_count > 0 ) { |
| 65 | + $errorList = '<b>' . wfMsgExt( 'validator_error_parameters', 'parsemag', $error_count ) . ':</b><br /><i>'; |
65 | 66 | |
66 | 67 | $errors = array(); |
67 | 68 | |
— | — | @@ -74,7 +75,7 @@ |
75 | 76 | case 'missing' : |
76 | 77 | $errors[] = wfMsgExt( 'validator_error_required_missing', array( 'parsemag' ), $error['name'] ); |
77 | 78 | break; |
78 | | - // Spesific validation faliures |
| 79 | + // Specific validation faliures |
79 | 80 | case 'not_empty' : |
80 | 81 | $errors[] = wfMsgExt( 'validator_error_empty_argument', array( 'parsemag' ), $error['name'] ); |
81 | 82 | break; |