Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 35b41709c2e8e2c6fe61698aadc30b222cf62208 1 parent 5d5bb26
@chillu chillu authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.