|
|
0 && $cfg['maximal_upload_size'] < 1024) {
- echo '' . t('FILE_LIM');
- echo " " . $cfg['maximal_upload_size'] . " MB.
";
- }
- else {
- echo '' . t('FILE_LIM');
- echo " " . $cfg['maximal_upload_size']/1024 . " GB.
";
- }
- ?>
+if ($cfg['maximal_upload_size'] >= 1024) {
+ echo '' . t('FILE_LIM');
+ echo " " . number_format($cfg['maximal_upload_size'] / 1024, 2) . " GB.
";
+} elseif ($cfg['maximal_upload_size'] > 0) {
+ echo '' . t('FILE_LIM');
+ echo " " . $cfg['maximal_upload_size'] . " MB.
";
+} else {
+ echo '