Permalink
Browse files

MINOR Better presentation of extension error message in File and Uplo…

…adValidator (from r107274)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112565 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 5d5bb26 commit 35b41709c2e8e2c6fe61698aadc30b222cf62208 @chillu chillu committed Oct 15, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 filesystem/File.php
  2. +1 −1 filesystem/Upload.php
View
2 filesystem/File.php
@@ -780,7 +780,7 @@ function validate() {
PR_MEDIUM,
'Argument 1: Comma-separated list of valid extensions'
),
- implode(', ',$exts)
+ wordwrap(implode(', ',$exts))
);
return new ValidationResult(false, $message);
}
View
2 filesystem/Upload.php
@@ -507,7 +507,7 @@ public function validate() {
PR_MEDIUM,
'Argument 1: Comma-separated list of valid extensions'
),
- implode(',', $this->allowedExtensions)
+ wordwrap(implode(', ', $this->allowedExtensions))
);
return false;
}

0 comments on commit 35b4170

Please sign in to comment.