X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLIntField.php;h=02af7de98bfbcacbbb3cf1b2303bbb7b7f5fbca0;hb=5049af1048c77b1ea6ab3193688d23a48ddf8df0;hp=c87a778a4ae03264808a5e29f933cec1b27c693c;hpb=dcdb8e463e3b2be121c61c91df13ea36d270a602;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLIntField.php b/includes/htmlform/fields/HTMLIntField.php index c87a778a4a..02af7de98b 100644 --- a/includes/htmlform/fields/HTMLIntField.php +++ b/includes/htmlform/fields/HTMLIntField.php @@ -18,7 +18,7 @@ class HTMLIntField extends HTMLFloatField { # input does not require its value to be numeric). If you want a tidier # value to, eg, save in the DB, clean it up with intval(). if ( !preg_match( '/^((\+|\-)?\d+)?$/', trim( $value ) ) ) { - return $this->msg( 'htmlform-int-invalid' )->parseAsBlock(); + return $this->msg( 'htmlform-int-invalid' ); } return true;