1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-20 21:42:23 +02:00
Co-authored-by: matjazpotocnik <matjaz.potocnik@um.si>
This commit is contained in:
Ryan Cramer
2023-03-30 07:47:35 -04:00
parent b7bec30fb7
commit 5c23e85a79

View File

@@ -86,6 +86,7 @@ class InputfieldURL extends InputfieldText {
if($value === $test || $value === "http://$test" || $value === "https://$test") $error = false;
}
if($error) {
$value = $this->val();
$this->error("$label - " . $this->_("Error found - please check that it is a valid URL")); // Error message when invalid URL found
}