MINOR Better presentation of extension error message in File and UploadValidator (from r107274)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112565 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 03:21:04 +00:00
parent 5d5bb2618a
commit 35b41709c2
2 changed files with 2 additions and 2 deletions

View File

@ -780,7 +780,7 @@ class File extends DataObject {
PR_MEDIUM, PR_MEDIUM,
'Argument 1: Comma-separated list of valid extensions' 'Argument 1: Comma-separated list of valid extensions'
), ),
implode(', ',$exts) wordwrap(implode(', ',$exts))
); );
return new ValidationResult(false, $message); return new ValidationResult(false, $message);
} }

View File

@ -507,7 +507,7 @@ class Upload_Validator {
PR_MEDIUM, PR_MEDIUM,
'Argument 1: Comma-separated list of valid extensions' 'Argument 1: Comma-separated list of valid extensions'
), ),
implode(',', $this->allowedExtensions) wordwrap(implode(', ', $this->allowedExtensions))
); );
return false; return false;
} }