X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLIntField.php;h=02af7de98bfbcacbbb3cf1b2303bbb7b7f5fbca0;hb=508c30e38fe1db714f3bd99478c811b4094a9f7f;hp=41916edc21fca5b9e28fe9ee01d6a93d902b47c3;hpb=3e285ba9d692352423cb7cf4291d35c35535d628;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLIntField.php b/includes/htmlform/fields/HTMLIntField.php index 41916edc21..02af7de98b 100644 --- a/includes/htmlform/fields/HTMLIntField.php +++ b/includes/htmlform/fields/HTMLIntField.php @@ -11,14 +11,14 @@ class HTMLIntField extends HTMLFloatField { return $p; } - # http://www.w3.org/TR/html5/infrastructure.html#signed-integers + # https://www.w3.org/TR/html5/infrastructure.html#signed-integers # with the addition that a leading '+' sign is ok. Note that leading zeros # are fine, and will be left in the input, which is useful for things like # phone numbers when you know that they are integers (the HTML5 type=tel # 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;