| @@ 522-529 (lines=8) @@ | ||
| 519 | } |
|
| 520 | ||
| 521 | // Validation: File size |
|
| 522 | if ($allowedMaxFileSize = $this->getValidator()->getAllowedMaxFileSize()) { |
|
| 523 | $config['maxFileSize'] = $allowedMaxFileSize; |
|
| 524 | $config['errorMessages']['maxFileSize'] = _t( |
|
| 525 | 'File.TOOLARGESHORT', |
|
| 526 | 'Filesize exceeds {size}', |
|
| 527 | array('size' => File::format_size($config['maxFileSize'])) |
|
| 528 | ); |
|
| 529 | } |
|
| 530 | ||
| 531 | $mergedConfig = array_merge($config, $this->ufConfig); |
|
| 532 | return $this->customise(array( |
|
| @@ 966-973 (lines=8) @@ | ||
| 963 | } |
|
| 964 | ||
| 965 | // Validation: File size |
|
| 966 | if ($allowedMaxFileSize = $this->getValidator()->getAllowedMaxFileSize()) { |
|
| 967 | $config['maxFileSize'] = $allowedMaxFileSize; |
|
| 968 | $config['errorMessages']['maxFileSize'] = _t( |
|
| 969 | 'File.TOOLARGESHORT', |
|
| 970 | 'File size exceeds {size}', |
|
| 971 | array('size' => File::format_size($config['maxFileSize'])) |
|
| 972 | ); |
|
| 973 | } |
|
| 974 | ||
| 975 | // Validation: Number of files |
|
| 976 | if ($allowedMaxFileNumber) { |
|