bug #2780722 [import] Incorrect maximum file size

This commit is contained in:
Marc Delisle
2009-04-29 10:18:34 +00:00
parent 9e7caf4bbc
commit 6c61d6c320
2 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
3.1.5.0 (not yet released)
- patch #2739001 [export] XML does not allow spaces in element names,
thanks to Derek Schaefer - drummingds1
- bug #2780722 [import] Incorrect maximum file size
3.1.4.0 (2009-04-25)
+ patch #1808339 [doc] Apache SSLOptions and StdEnvVars FAQ,

View File

@@ -140,7 +140,9 @@ function PMA_getIcon($icon, $alternate = '', $container = false, $force_text = f
*/
function PMA_displayMaximumUploadSize($max_upload_size)
{
list($max_size, $max_unit) = PMA_formatByteDown($max_upload_size);
// I have to reduce the second parameter (sensitiveness) from 6 to 4
// to avoid weird results like 512 kKib
list($max_size, $max_unit) = PMA_formatByteDown($max_upload_size, 4);
return '(' . sprintf($GLOBALS['strMaximumSize'], $max_size, $max_unit) . ')';
}