Merge branch '3.0' into 3

This commit is contained in:
Steve Boyd 2023-03-02 16:19:03 +13:00
commit 556a741362

View File

@ -17,7 +17,7 @@ class WildcardDomainField extends TextField
public function validate($validator)
{
if ($this->checkHostname($this->Value())) {
return true;
return $this->extendValidationResult(true, $validator);
}
$validator->validationError(
@ -25,7 +25,7 @@ class WildcardDomainField extends TextField
_t('DomainNameField.INVALID_DOMAIN', 'Invalid domain name'),
'validation'
);
return false;
return $this->extendValidationResult(false, $validator);
}
/**