Merge "Fix imagemap_invalid_coord message"

This commit is contained in:
jenkins-bot 2020-04-06 19:01:19 +00:00 committed by Gerrit Code Review
commit 25bc9d8700

View file

@ -396,7 +396,7 @@ class ImageMap {
$coord = strtok( " \t" ); $coord = strtok( " \t" );
while ( $coord !== false ) { while ( $coord !== false ) {
if ( !is_numeric( $coord ) || $coord > 1e9 || ( !$allowNegative && $coord < 0 ) ) { if ( !is_numeric( $coord ) || $coord > 1e9 || ( !$allowNegative && $coord < 0 ) ) {
return self::error( 'imagemap_invalid_crd', $lineNum ); return self::error( 'imagemap_invalid_coord', $lineNum );
} }
$coords[] = $coord; $coords[] = $coord;
$coord = strtok( " \t" ); $coord = strtok( " \t" );