Merge pull request #1801 from willmorgan/patch-2

Fixing typo on Validator exception message
This commit is contained in:
Ingo Schommer 2013-04-24 14:14:17 -07:00
commit 1b4d7fae24

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);