X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLFormField.php;h=71aa27544983e5f0739008f21e56258b67557eef;hb=ff70e103def9601f40836cbd9022e1267200510e;hp=8390a0bbbe19baea3e4e7f7aae8291de5a7b74af;hpb=0fca1e6a3fb8fa02bed112493f7d66d71b849cab;p=lhc%2Fweb%2Fwiklou.git 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 ) ) {