]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10715 - remove inappropiate 'upload not allowed' options on upload assignment...
authorpoltawski <poltawski>
Mon, 6 Aug 2007 13:28:40 +0000 (13:28 +0000)
committerpoltawski <poltawski>
Mon, 6 Aug 2007 13:28:40 +0000 (13:28 +0000)
Merged from MOODLE_18_STABLE

mod/assignment/type/upload/assignment.class.php
mod/assignment/type/uploadsingle/assignment.class.php

index 252087d5abf95b10d165d4b5da5d2e832d74b09b..607a4dcde6a2c0c796db09a411117fa6b7e02f53 100644 (file)
@@ -921,7 +921,6 @@ class assignment_upload extends assignment_base {
         $ynoptions = array( 0 => get_string('no'), 1 => get_string('yes'));
 
         $choices = get_max_upload_sizes($CFG->maxbytes, $COURSE->maxbytes);
-        $choices[1] = get_string('uploadnotallowed');
         $choices[0] = get_string('courseuploadlimit') . ' ('.display_size($COURSE->maxbytes).')';
         $mform->addElement('select', 'maxbytes', get_string('maximumsize', 'assignment'), $choices);
         $mform->setDefault('maxbytes', $CFG->assignment_maxbytes);
index b74dcbc14d49dbb3c79909dd03f7652b11f61215..53d6e48af484d86d163fc35bff052db79cdd6d82 100644 (file)
@@ -173,7 +173,6 @@ class assignment_uploadsingle extends assignment_base {
         $mform->setDefault('emailteachers', 0);
 
         $choices = get_max_upload_sizes($CFG->maxbytes, $COURSE->maxbytes);
-        $choices[1] = get_string('uploadnotallowed');
         $choices[0] = get_string('courseuploadlimit') . ' ('.display_size($COURSE->maxbytes).')';
         $mform->addElement('select', 'maxbytes', get_string('maximumsize', 'assignment'), $choices);
         $mform->setDefault('maxbytes', $CFG->assignment_maxbytes);