diff --git a/include/class.forms.php b/include/class.forms.php index 99fcd286663fe55bd690d2efd02c0fce0ec4a7ab..27c6eee2a183a355ba6e1e5dc13453c7fe77b2aa 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -1245,7 +1245,7 @@ class FileUploadField extends FormField { function getConfigurationOptions() { // Compute size selections - $sizes = array('262144' => '— Small —'); + $sizes = array('262144' => '— '.__('Small').' —'); $next = 512 << 10; $max = strtoupper(ini_get('upload_max_filesize')); $limit = (int) $max; @@ -1256,7 +1256,6 @@ class FileUploadField extends FormField { while ($next <= $limit) { // Select the closest, larger value (in case the // current value is between two) - $diff = $next - $config['max_file_size']; $sizes[$next] = Format::file_size($next); $next *= 2; }