]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9145 Fixed 1) and 2)
authornicolasconnault <nicolasconnault>
Wed, 4 Apr 2007 01:43:31 +0000 (01:43 +0000)
committernicolasconnault <nicolasconnault>
Wed, 4 Apr 2007 01:43:31 +0000 (01:43 +0000)
group/edit_form.php

index f42c2a7d118bc8c5c678ed8d4e0995081b76a99e..f707d8199ff3a17553ef99a83ea867967e7ec81c 100644 (file)
@@ -21,9 +21,7 @@ class group_edit_form extends moodleform {
         $groupingid  = $this->_customdata['groupingid'];
         $newgrouping = $this->_customdata['newgrouping'];
         $courseid    = $this->_customdata['courseid'];
-       
 
-        $id = $group->id;
         $mform =& $this->_form;
         
         $mform->addElement('text','name', get_string('groupname', 'group'),'maxlength="254" size="50"');
@@ -38,12 +36,12 @@ class group_edit_form extends moodleform {
         $mform->setHelpButton('enrolmentkey', array('groupenrolmentkey', get_string('enrolmentkey', 'group')), true);
         $mform->setType('enrolmentkey', PARAM_RAW);
         
-        $options = array(get_string('no'), get_string('yes'));
-        $mform->addElement('select', 'hidepicture', get_string('hidepicture'), $options);
-        
         $maxbytes = get_max_upload_file_size($CFG->maxbytes, $COURSE->maxbytes);
         
         if (!empty($CFG->gdversion) and $maxbytes) {
+            $options = array(get_string('no'), get_string('yes'));
+            $mform->addElement('select', 'hidepicture', get_string('hidepicture'), $options);
+        
             $this->set_upload_manager(new upload_manager('imagefile', false, false, null, false, 0, true, true, false));
             $mform->addElement('file', 'imagefile', get_string('newpicture', 'group'));
             $mform->setHelpButton('imagefile', array ('picture', get_string('helppicture')), true);