Fixing typo on Validator exception message

This commit is contained in:
Will Morgan 2013-04-24 18:50:40 +02:00
parent 59dbdcfc55
commit 9732a7fb3b

View File

@ -164,7 +164,7 @@ class Form extends RequestHandler {
throw new InvalidArgumentException('$actions must be a valid FieldList instance');
}
if($validator && !$validator instanceof Validator) {
throw new InvalidArgumentException('$validator must be a Valdidator instance');
throw new InvalidArgumentException('$validator must be a Validator instance');
}
$fields->setForm($this);