mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-13741 Incorrect max size shown when using course upload limit; patch by Jason Meinzer; merged from MOODLE_19_STABLE
This commit is contained in:
parent
d747d41bf2
commit
ba9ad04975
@ -140,7 +140,8 @@ class assignment_upload extends assignment_base {
|
||||
$submission = $this->get_submission($USER->id);
|
||||
|
||||
$struploadafile = get_string('uploadafile');
|
||||
$strmaxsize = get_string('maxsize', '', display_size($this->assignment->maxbytes));
|
||||
$maxbytes = $this->assignment->maxbytes == 0 ? $this->course->maxbytes : $this->assignment->maxbytes;
|
||||
$strmaxsize = get_string('maxsize', '', display_size($maxbytes));
|
||||
|
||||
if ($this->is_finalized($submission)) {
|
||||
// no uploading
|
||||
|
@ -81,7 +81,9 @@ class assignment_uploadsingle extends assignment_base {
|
||||
function view_upload_form() {
|
||||
global $CFG;
|
||||
$struploadafile = get_string("uploadafile");
|
||||
$strmaxsize = get_string("maxsize", "", display_size($this->assignment->maxbytes));
|
||||
|
||||
$maxbytes = $this->assignment->maxbytes == 0 ? $this->course->maxbytes : $this->assignment->maxbytes;
|
||||
$strmaxsize = get_string('maxsize', '', display_size($maxbytes));
|
||||
|
||||
echo '<div style="text-align:center">';
|
||||
echo '<form enctype="multipart/form-data" method="post" '.
|
||||
|
Loading…
x
Reference in New Issue
Block a user