Index: trunk/extensions/Maps/ParserFunctions/GeoFunctions/Maps_GeoFunctions.php |
— | — | @@ -142,7 +142,11 @@ |
143 | 143 | $output = $errorList; |
144 | 144 | } |
145 | 145 | } else { |
146 | | - $output = $manager->getErrorList(); |
| 146 | + // One of the parameters is not provided, so display an error message. |
| 147 | + // If the error level is Validator_ERRORS_MINIMAL, show the Validator_ERRORS_WARN message since |
| 148 | + // the function could not do any work, otherwise use the error level as it is. |
| 149 | + global $egValidatorErrorLevel; |
| 150 | + $output = $manager->getErrorList( $egValidatorErrorLevel == Validator_ERRORS_MINIMAL ? Validator_ERRORS_WARN : $egValidatorErrorLevel ); |
147 | 151 | } |
148 | 152 | |
149 | 153 | return array( $output, 'noparse' => true, 'isHTML' => true ); |