r64884 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64883‎ | r64884 | r64885 >
Date:14:46, 10 April 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Changes for 0.6 - error level fix in #geodistance
Modified paths:
  • /trunk/extensions/Maps/ParserFunctions/GeoFunctions/Maps_GeoFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/ParserFunctions/GeoFunctions/Maps_GeoFunctions.php
@@ -142,7 +142,11 @@
143143 $output = $errorList;
144144 }
145145 } 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 );
147151 }
148152
149153 return array( $output, 'noparse' => true, 'isHTML' => true );

Status & tagging log