mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
parent
adfd0456de
commit
1734e0d2a3
@ -277,10 +277,8 @@ class Upload_Validator
|
||||
// extension validation
|
||||
if (!$this->isValidExtension()) {
|
||||
$this->errors[] = _t(
|
||||
'File.INVALIDEXTENSION',
|
||||
'Extension is not allowed (valid: {extensions})',
|
||||
'Argument 1: Comma-separated list of valid extensions',
|
||||
array('extensions' => wordwrap(implode(', ', $this->allowedExtensions)))
|
||||
'File.INVALIDEXTENSION_SHORT',
|
||||
'Extension is not allowed'
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
@ -831,10 +831,8 @@ class UploadTest_Validator extends Upload_Validator implements TestOnly {
|
||||
// extension validation
|
||||
if(!$this->isValidExtension()) {
|
||||
$this->errors[] = _t(
|
||||
'File.INVALIDEXTENSION',
|
||||
'Extension is not allowed (valid: {extensions})',
|
||||
'Argument 1: Comma-separated list of valid extensions',
|
||||
array('extensions' => implode(',', $this->allowedExtensions))
|
||||
'File.INVALIDEXTENSION_SHORT',
|
||||
'Extension is not allowed'
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user