mirror of
https://github.com/processwire/processwire.git
synced 2025-08-20 13:31:48 +02:00
Fix issue processwire/processwire-issues#1705
Co-authored-by: matjazpotocnik <matjaz.potocnik@um.si>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user