mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 08:11:26 +01:00
4909e17632
1) There is a new site-wide configuration variable called maxbytes, which provides an upper filesize limit for all (student) uploads. 2) There is a new course-level variable called maxbytes, which further limits uploads within a course. 3) There is a new maxbytes field for forums, which further restricts the size allowed in a particular forum. There is also a new config variable in the module configuration to specify a default size to use when defining a new forum. 4) Assignments already had a limit, but this is now aware of the other limits, and like forums there is now a settable default value. 5) Finally, the sizes of files (Gb, Mb, Kb, bytes) is now translatable in the language packs.
23 lines
542 B
HTML
23 lines
542 B
HTML
<form method="post" action="module.php" name="form">
|
|
|
|
<table cellpadding=9 cellspacing=0 >
|
|
<tr valign=top>
|
|
<td align=right><p>assignment_maxbytes:</td>
|
|
<td><?php
|
|
$choices = get_max_upload_sizes($CFG->maxbytes);
|
|
choose_from_menu ($choices, "assignment_maxbytes", $CFG->assignment_maxbytes, "");
|
|
?>
|
|
</td>
|
|
<td>
|
|
<?php print_string("configmaxbytes", "assignment") ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan=3 align=center>
|
|
<input type="submit" value="<?php print_string("savechanges") ?>"></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</form>
|