From 56eb160c8e0a60b3dde056279888e51f20268d7a Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 27 Mar 2004 14:32:57 +0000 Subject: [PATCH] Attachments can now be completely disabled in forums --- lang/en/moodle.php | 1 + mod/forum/mod.html | 1 + mod/forum/post.html | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lang/en/moodle.php b/lang/en/moodle.php index edcdeab15f..e2f9bd317f 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -867,6 +867,7 @@ $string['upload'] = 'Upload'; $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'; diff --git a/mod/forum/mod.html b/mod/forum/mod.html index 268109d096..191f84da09 100644 --- a/mod/forum/mod.html +++ b/mod/forum/mod.html @@ -102,6 +102,7 @@ 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"); diff --git a/mod/forum/post.html b/mod/forum/post.html index 5a85c18c44..a83c09c82c 100644 --- a/mod/forum/post.html +++ b/mod/forum/post.html @@ -83,6 +83,8 @@ +maxbytes != 1) { // 1 = No attachments at all ?> +

:
(

@@ -94,9 +96,10 @@ print_string("maxsize", "", display_size($maxbytes)); ?> - + + -- 2.39.5