X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLFloatField.php;h=d2d54e28d060b894ab24ee70044a1171fa5c2487;hb=5049af1048c77b1ea6ab3193688d23a48ddf8df0;hp=d1250c06f7a8a9da9b33a3f38afcb7e2894e5677;hpb=10a4b17a60b1ee041b8f8a4e6961644893883590;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLFloatField.php b/includes/htmlform/fields/HTMLFloatField.php index d1250c06f7..d2d54e28d0 100644 --- a/includes/htmlform/fields/HTMLFloatField.php +++ b/includes/htmlform/fields/HTMLFloatField.php @@ -20,7 +20,7 @@ class HTMLFloatField extends HTMLTextField { # https://www.w3.org/TR/html5/infrastructure.html#floating-point-numbers # with the addition that a leading '+' sign is ok. if ( !preg_match( '/^((\+|\-)?\d+(\.\d+)?(E(\+|\-)?\d+)?)?$/i', $value ) ) { - return $this->msg( 'htmlform-float-invalid' )->parseAsBlock(); + return $this->msg( 'htmlform-float-invalid' ); } # The "int" part of these message names is rather confusing. @@ -29,7 +29,7 @@ class HTMLFloatField extends HTMLTextField { $min = $this->mParams['min']; if ( $min > $value ) { - return $this->msg( 'htmlform-int-toolow', $min )->parseAsBlock(); + return $this->msg( 'htmlform-int-toolow', $min ); } } @@ -37,7 +37,7 @@ class HTMLFloatField extends HTMLTextField { $max = $this->mParams['max']; if ( $max < $value ) { - return $this->msg( 'htmlform-int-toohigh', $max )->parseAsBlock(); + return $this->msg( 'htmlform-int-toohigh', $max ); } }