Merge pull request #745 from creative-commoners/pulls/5.0/file-field-max-size

FIX Correctly return the max file size in MB
This commit is contained in:
Daniel Hensby 2018-03-22 13:26:41 +00:00 committed by GitHub
commit e0c4dfd6c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,6 +159,6 @@ class EditableFileField extends EditableFormField
public function getPHPMaxFileSizeMB()
{
return round(static::get_php_max_file_size() / 1024.0, 1);
return round(static::get_php_max_file_size() / 1024 / 1024, 1);
}
}