$string['uploadafile'] = 'Upload a file';
$string['uploadedfileto'] = 'Uploaded $a->file to $a->directory';
$string['uploadnofilefound'] = 'No file was found - are you sure you selected one to upload?';
+$string['uploadnotallowed'] = 'Uploads are not allowed';
$string['uploadproblem'] = 'An unknown problem occurred while uploading the file \'$a\' (perhaps it was too large?)';
$string['uploadthisfile'] = 'Upload this file';
$string['uploadusers'] = 'Upload users';
<td>
<?php
$choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes);
+ $choices[1] = get_string("uploadnotallowed");
$choices[0] = get_string("courseuploadlimit") . " (".display_size($course->maxbytes).")";
choose_from_menu ($choices, "maxbytes", $form->maxbytes, "");
helpbutton("maxattachmentsize", get_string("maxattachmentsize", "forum"), "forum");
</tr>
+<?php if ($forum->maxbytes != 1) { // 1 = No attachments at all ?>
+
<tr valign=top>
<td align=right><p><b><?php print_string("attachment", "forum") ?>:<br />(<?php print_string("optional") ?>) </b></p></td>
<td>
print_string("maxsize", "", display_size($maxbytes));
?>
</td>
-
</tr>
+<?php } ?>
+
<tr>
<td align=center colspan=2>