Skip to content

Commit

Permalink
MDL-16722 - Upload limit does not respect course upload limit in sett…
Browse files Browse the repository at this point in the history
…ings for mod/scorm.
  • Loading branch information
piers committed Sep 29, 2008
1 parent c6106dd commit 560417f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/scorm/mod_form.php
Expand Up @@ -5,7 +5,7 @@
class mod_scorm_mod_form extends moodleform_mod {

function definition() {
global $CFG;
global $CFG, $COURSE;

$mform = $this->_form;

Expand Down Expand Up @@ -67,6 +67,8 @@ function definition() {
}

// New local package upload
$maxbytes = get_max_upload_file_size($CFG->maxbytes, $COURSE->maxbytes);
$mform->setMaxFileSize($maxbytes);
$mform->addElement('file', 'packagefile', get_string('package','scorm'));
$mform->disabledIf('packagefile', 'scormtype', 'noteq', SCORM_TYPE_LOCAL);

Expand Down

0 comments on commit 560417f

Please sign in to comment.