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