X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLFormField.php;h=71aa27544983e5f0739008f21e56258b67557eef;hp=8390a0bbbe19baea3e4e7f7aae8291de5a7b74af;hb=e758226c91935a1df2b6fd3ed1f18922d8bfb45b;hpb=ea42d90053b36cef47f318a1d50c18dfafc6b7b8 diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php index 8390a0bbbe..71aa275449 100644 --- a/includes/htmlform/HTMLFormField.php +++ b/includes/htmlform/HTMLFormField.php @@ -296,7 +296,7 @@ abstract class HTMLFormField { * @param string|array $value The value the field was submitted with * @param array $alldata The data collected from the form * - * @return bool|string True on success, or String error to display, or + * @return bool|string|Message True on success, or String/Message error to display, or * false to fail validation without displaying an error. */ public function validate( $value, $alldata ) { @@ -308,7 +308,7 @@ abstract class HTMLFormField { && $this->mParams['required'] !== false && $value === '' ) { - return $this->msg( 'htmlform-required' )->parse(); + return $this->msg( 'htmlform-required' ); } if ( isset( $this->mValidationCallback ) ) {