Skip to content
Snippets Groups Projects
Commit a6f98614 authored by Jared Hancock's avatar Jared Hancock
Browse files

lint: Fix unused uninitialized var

parent bbaf1b1f
Branches
Tags
No related merge requests found
...@@ -1245,7 +1245,7 @@ class FileUploadField extends FormField { ...@@ -1245,7 +1245,7 @@ class FileUploadField extends FormField {
function getConfigurationOptions() { function getConfigurationOptions() {
// Compute size selections // Compute size selections
$sizes = array('262144' => '— Small —'); $sizes = array('262144' => '— '.__('Small').' —');
$next = 512 << 10; $next = 512 << 10;
$max = strtoupper(ini_get('upload_max_filesize')); $max = strtoupper(ini_get('upload_max_filesize'));
$limit = (int) $max; $limit = (int) $max;
...@@ -1256,7 +1256,6 @@ class FileUploadField extends FormField { ...@@ -1256,7 +1256,6 @@ class FileUploadField extends FormField {
while ($next <= $limit) { while ($next <= $limit) {
// Select the closest, larger value (in case the // Select the closest, larger value (in case the
// current value is between two) // current value is between two)
$diff = $next - $config['max_file_size'];
$sizes[$next] = Format::file_size($next); $sizes[$next] = Format::file_size($next);
$next *= 2; $next *= 2;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment