FIX Correctly return the max file size in MB

This commit is contained in:
Robbie Averill 2018-03-22 16:51:03 +13:00
parent 53f7706f1a
commit 92a2229249

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);
}
}