Merge pull request #2722 from axyr/master

File validate should have extend hook
This commit is contained in:
Ingo Schommer 2013-12-19 09:22:19 -08:00
commit 0d6181ce6f

View File

@ -890,7 +890,9 @@ class File extends DataObject {
// We aren't validating for an existing "Filename" on the filesystem.
// A record should still be saveable even if the underlying record has been removed.
return new ValidationResult(true);
$result = new ValidationResult(true);
$this->extend('validate', $result);
return $result;
}
/**