Révision 8c72e82a
Ajouté par Assos Assos il y a environ 7 ans
drupal7/sites/all/modules/webform/components/file.inc | ||
---|---|---|
222 | 222 |
if (!empty($element['#value'])) { |
223 | 223 |
$set_filesize = parse_size($element['#value']); |
224 | 224 |
if ($set_filesize == FALSE) { |
225 |
form_error($element, t('File size @value is not a valid filesize. Use a value such as 2 MB or 800 KB.', array('@value' => $element['#value']))); |
|
225 |
form_error($element, t('File size @value is not a valid file size. Use a value such as 2 MB or 800 KB.', array('@value' => $element['#value'])));
|
|
226 | 226 |
} |
227 | 227 |
else { |
228 | 228 |
$max_filesize = parse_size(file_upload_max_size()); |
229 | 229 |
if ($max_filesize < $set_filesize) { |
230 |
form_error($element, t('An upload size of @value is too large, you are allow to upload files @max or less.', array('@value' => $element['#value'], '@max' => format_size($max_filesize))));
|
|
230 |
form_error($element, t('An upload size of @value is too large. You are allowed to upload files that are @max or less.', array('@value' => $element['#value'], '@max' => format_size($max_filesize))));
|
|
231 | 231 |
} |
232 | 232 |
} |
233 | 233 |
} |
... | ... | |
389 | 389 |
* An associative array containing: |
390 | 390 |
* - element: A render element representing the file. |
391 | 391 |
* |
392 |
* @return string |
|
392 | 393 |
*/ |
393 | 394 |
function theme_webform_managed_file($variables) { |
394 | 395 |
$element = $variables['element']; |
Formats disponibles : Unified diff
Weekly update of contrib modules